Registry / maps / local-geocode

local-geocode

JSON →
library0.0.2pypypi✓ verified 80d ago

Simple library for efficient geocoding without making API calls, using local lookup tables. Current version: 0.0.2, with basic state/city level geocoding. Minimal maintenance.

pip install local-geocode
INSTALL
IMPORT
SIG · LOCAL-GEOCODE
L
local-geocode
mapspythonv0.0.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

geocode
import geocode
from local_geocode import geocode

Quick geocoding example for a US city name.

from local_geocode import geocode result = geocode('New York') print(result)
Debug
Known issues
breakingThe geocode function only accepts city names or ZIP codes; passing full addresses (e.g., '123 Main St') will return None or raise an error.
fix
Ensure input is a city name or 5-digit ZIP code.
affects: <=0.0.2
gotchaThe library is US-only; geocoding non-US locations will return None without error.
fix
Check result for None before using coordinates.
affects: <=0.0.2
Upgrade
Version history
0.0.2latest on PyPI · released Dec 12, 2023
Audit
Dependencies

No dependency data recorded yet.

Agent activity
26 hits · last 30 days
node
22
Resources
local-geocode — pip install local-geocode · libregistry