MCPcopy Index your code
hub / github.com/AReallyGoodName/OfflineReverseGeocode

github.com/AReallyGoodName/OfflineReverseGeocode @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
23 symbols 35 edges 5 files 6 documented · 26% updated 6y ago1.0 · 2016-02-01★ 4974 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

An Offline Reverse Geocoding Java library

Uses KD-Trees for extremely fast placename lookups

Licensed under The MIT License

A C# port by Necrolis is available at https://github.com/Necrolis/GeoSharp

Usage:

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 " + geocode.nearestPlace(-23.456, 123.456));

Core symbols most depended-on inside this repo

Shape

Method 17
Class 5
Enum 1

Languages

Java100%

Modules by API surface

src/main/java/geocode/GeoName.java9 symbols
src/main/java/geocode/kdtree/KDTree.java4 symbols
src/main/java/geocode/kdtree/KDNodeComparator.java4 symbols
src/main/java/geocode/ReverseGeoCode.java4 symbols
src/main/java/geocode/kdtree/KDNode.java2 symbols

For agents

$ claude mcp add OfflineReverseGeocode \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page