0.0
No release in over a year
It uses simplemaps database to provide a list of countries and cities around the world to use in your application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies
 Project Readme

WorldVoyager

Simple list of countries and cities around the world.

It uses simplemaps database to provide a list of countries districts and cities around the world to use in your application.

Installation

Just install the world_voyager gem

gem install world_voyager

or if you use bundler put this in your Gemfile

gem 'world_voyager'

Usage

List all countries of the world

WorldVoyager.countries
# => ["Afghanistan", "Albania", "Algeria", "American Samoa", "Andorra", ...]

List all districts of specific country

WorldVoyager.districts("Portugal")
# => ["Aveiro", "Azores", "Beja", "Braga", "Bragança", ...]

List all cities of specific district

WorldVoyager.cities("Coimbra")
# => ["Arganil", "Cantanhede", "Coimbra", "Condeixa-a-Nova", "Eiras", ...]

License

The gem is available as open source under the terms of the MIT License. Also, it uses simplemaps open source database.