1.0.1 • Published 7 years ago

city-lat-long-map v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

city-lat-lon-map

Mapping of city names to their latitude and longitude. Latitude and longitude are specified to 6 decimal places.

Installation

$ npm install --save city-lat-lon-map

Usage

To use this npm package, require this module.

Example: import cityMap from 'city-lat-lon-map'

To access latitude and longitude of a city, do the follow:

  • data for a city: cityMap['city name']
  • latitude for a city: cityMap['city name'].lat
  • latitude for a city: cityMap['city name'].lng

see this package on npm