Skip to content

Offline geographical directory (gazetteer) implemented as Java lib. Based on Geonames data.

Notifications You must be signed in to change notification settings

stargazer33/gazetteer4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 

Repository files navigation

Gazetteer4j

Image from Wikipedia: The Santa Fe Railway's 1891 Route Map, entitled Grain Dealers and Shippers Gazetteer

Offline geographical directory (gazetteer) implemented as Java lib. Based on Geonames data.

Features

Address resolving (convert ambiguous addresses/place name to city,state,country)

The idea is to convert all the ambiguous addresses to the <city>,[state,]<country> format. A few examples of address resolving:

Ambiguous address Address in proper format Comment
Santa Cruz Santa Cruz, CA, USA not the Santa Cruz in Spain/Chile/Bolivia
Paris Paris, France not Paris in Texas
NYC New York City, NY, USA
FL FL, USA
Odessa Odessa, Ukraine not Odessa in Texas
Odessa, USA Odessa, TX, USA

 

Setup

Download Geonames data

wget http://download.geonames.org/export/dump/cities15000.zip
wget http://download.geonames.org/export/dump/allCountries.zip

unzip cities15000.zip
unzip allCountries.zip

About

Offline geographical directory (gazetteer) implemented as Java lib. Based on Geonames data.

Resources

Stars

Watchers

Forks

Packages