🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

example-cities

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

example-cities

An list of common cities around the world, their longitude/latitude and wikipedia link. This module is indended to be used only for examples / demos.

0.0.0
latest
npm
Version published
Maintainers
1
Created
Source

Example Cities

An list of common cities around the world, their longitude/latitude and wikipedia link. This module is indended to be used only for examples / demos.

Created from the following Wikipedia pages:

https://en.wikipedia.org/wiki/Latitude_and_longitude_of_cities,_A-H https://en.wikipedia.org/wiki/Latitude_and_longitude_of_cities,_I-P https://en.wikipedia.org/wiki/Latitude_and_longitude_of_cities,_Q-Z

Example usage

var cities = require('example-cities');

console.log(cities[0].latitude);
console.log(cities[0].longitude);
console.log(cities[0].name);

Updating the cities

To update the list of cities, run, first install the dependencies

npm install

Then

npm run update

Which will update the cities.json file.

FAQs

Package last updated on 08 Nov 2015

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