Open source · Apache-2.0 code · open data

Accurate places,
offline, in every language.

Coordinates, elevation, the admin hierarchy to the lowest level, boundaries, local names, exact timezones and postal codes, cleaned and deduplicated from the best open sources, in small signed packs you ship with your app or download when you need them.

import teigeodatafrom teigeodata.blob import Readerengine = teigeodata.Engine()engine.open_file("world-np-lite.tgd")for place in Reader(engine.search("Pokhara", 2)):    print(place["id"], place["name"], place["kind"])# tgd:np/1xhb Pokhara settlement# tgd:np/1xnr Pokhara admin(area,) = Reader(engine.tz_at(27.7172, 85.3240))print(area["tz"])  # Asia/Kathmandu

The same calls in every language; see the guides.

What it answers

Search in every script

काठमाडौं, Kathmandu and Kathamandu find the same place. "Name, Parent" ranks the place in that parent first; a focus point ranks what is near.

Reverse and admin

From a point to the nearest places with their distance and bearing, and to every admin unit that holds it, country first.

Exact timezones

The IANA zone at any point as its boundaries draw it, offsets and transitions from the zone rules, local times resolved, tzdb version stated.

Elevation

A height for every place and at any point with terrain: metres above EGM2008, interpolated between samples, with the source named.

Offline first

Packs are memory-mapped files. Bundle one in your app, or download a country when a user needs it; queries never touch the network.

Signed and verified

Every section is hashed and every pack signed. The store checks each byte against a signed catalog before it is used.

Pay for what you use

Packs split into components (points, names, search, boundaries, timezones, terrain). Install and link only the ones you need.

Servers included

tgd serve answers HTTP, GeoJSON and Nominatim-compatible routes; tgd mcp gives AI agents the same queries over MCP.

One API everywhere

Rust, C, C++, Swift, Kotlin and Java, Dart and Flutter, Python, Node.js, WebAssembly, Go and .NET, generated from one definition.

Pick your language

Each guide takes you from install to every query, with programs that ran on a released pack.

Data you are allowed to keep

Commercial geocoding APIs limit how long you may store their answers. teigeodata's data is yours to store, ship and redistribute: the main build under ODbL, the lite build under CC BY 4.0, with every source credited in every pack and every answer.

Licences and attribution →

Coverage grows by data releases

Nepal in full today, with the world's countries, first-level units and cities of 5,000 or more, and India's districts and towns. Then India, South Asia, Asia, the USA and the rest of the world.

Countries and sources →