# thampiman/reverse-geocoder

A fast, offline reverse geocoder in Python

Repository: https://github.com/thampiman/reverse-geocoder
Canonical: https://ross.abutalabs.com/products/reverse-geocoder
Language: Python
License: LGPL-2.1
License Family: copyleft
Last push: 2023-03-19T10:52:18+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4178, "days_push": 1263, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1908, forks 155 (observed 2026-08-28T04:05:52.737097+00:00)

## What it is
A fast, offline Python library for reverse geocoding that converts latitude/longitude coordinates into the nearest city, country code, and administrative regions. It uses a parallelised K-D tree implementation over GeoNames city data and supports custom CSV data sources.

## Use cases
- convert gps coordinates to city name offline
- reverse geocode lat lon in python without internet
- find nearest city to a coordinate
- get country code and admin region from coordinates
- bulk reverse geocoding of large coordinate datasets
- use custom city database for reverse geocoding

## When to choose
- you need offline reverse geocoding with no API calls
- you need fast nearest-neighbor lookups over large coordinate batches
- you want administrative region data alongside city and country
- you want to plug in your own CSV place database

## When to avoid
- you need forward geocoding (address to coordinates)
- you need precise street-level or address-level results
- you need an actively developed project with recent updates
- you need a web service or API rather than a Python library

## Facets
- artifact type: library
- maturity: maintenance
- function: geospatial, search-engine
- domain: developer-tools
- platform: python, cross-platform
- tags: reverse-geocoding, offline, kd-tree, geonames, coordinates, geospatial, maps

## Member repositories
- thampiman/reverse-geocoder (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:52.737097+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:11:14.038070+00:00, confidence not recorded.
  - readme: https://github.com/thampiman/reverse-geocoder (fetched 2026-08-28T04:05:52.737097+00:00, sha bd712946bd0a)
  - registry_pypi: https://pypi.org/pypi/reverse-geocoder/json (fetched 2026-08-29T10:50:17.092215+00:00, sha ca37e0630249)
- Data as of 2026-08-30T08:39:29.467469+00:00.
