- An Offline Reverse Geocoding Java library
- Forked from https://github.com/AReallyGoodName/OfflineReverseGeocode
- This library provides offline reverse geocoding for GeoNames placenames and postal codes given a lat/lon. It uses k-d trees for extremely fast lookups.
- First download a placenames file from http://download.geonames.org/export/dump/
- Allcountries.zip from that site is comprehensive however if you're on mobile try the cities1000.zip file. It's 1/80th of the size.
- Then simply
ReverseGeoCode reverseGeoCode = new ReverseGeoCode(new FileInputStream("c:\\\\AU.txt"), true);
System.out.println("Nearest to -23.456, 123.456 is " + reverseGeoCode.nearestPlace(-23.456, 123.456));
- First download a postal code file from http://download.geonames.org/export/zip/
- Then simply
ReversePostalCode reversePostalCode = new ReversePostalCode(new FileInputStream("c:\\\\AU.txt"));
System.out.println("Nearest to -23.456, 123.456 is " + reversePostalCode.nearestPostalCode(-23.456, 123.456));
This library does not have any direct configuration for connections.
Licensed under The MIT License
A C# port by Necrolis is available at https://github.com/Necrolis/GeoSharp