Country

Geocode Brazilian addresses offline

One file for all of Brazil, read locally. No server, no API key, and the addresses you geocode never leave your machine.

Get started

The file for Brazil is 677 MB and holds 67.19 million addresses from IBGE CNEFE 2022 (via Overture Maps). Download it once, checked against the signed release; every query after that runs on your machine, with no API key and no rate limit.

terminalpip
$ pip install gridpin-mcp   # includes the engine
$ gridpin-fetch br         # Brazil, 677 MB, verified download
geocode.pyPython
import gridpin
from gridpin_mcp import sheets

g = gridpin.Geocoder(str(sheets.download("br")))  # no-op once downloaded

g.geocode("Avenida Paulista 1578, 01310-200 São Paulo", 1)
# -> house, Avenida Paulista 1578, São Paulo
g.geocode("Av. Paulista, 1578 - Bela Vista, São Paulo - SP", 1)
# -> the same house

A CEP works with or without the hyphen (01310-200 or 01310200), and the usual Brazilian form with the neighbourhood and the state after the street works as written.

How often it finds the right house, compared with Nominatim and Photon on independent truth: benchmark. Try it without installing: the live demo (pick Brazil in the list), or the Colab notebook (set COUNTRY = "br").