Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

world_voyager

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

world_voyager

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 24 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc