city-lat-long-map

1.0.1 • Public • Published

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

/city-lat-long-map/

    Package Sidebar

    Install

    npm i city-lat-long-map

    Weekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Last publish

    Collaborators

    • cdersky