geolist
v1.0.6
Published
Library for getting city, country and timezone data. Based on http://www.geonames.org/
Downloads
2
Readme
GeoList
GeoList is dataset based on http://www.geonames.org/ that can be used for searching countries, cities and timezones. This package aims to provide access to this dataset without the need for an external service. Currently I'm still testing this package, I'll try my best to update it frequently or as needed.
Database last updated: 09/19/2021
Getting Started
Install
npm i geolist --save
Example
Get all countries
import geolist from 'geolist'
geolist.getAllCities()
Search cities by name
import geolist from 'geolist'
geolist.searchCitiesByName("Springfield").then((result)=>console.log(result))