Usage
Gazetteer API
An ATGeo Gazetteer is an XRPC service that serves authoritative place data in ATGeo Place formatted JSON.
The places.atgeo.org gazetteer lets you pull points of interest (PoIs) from OpenStreetMap and Overture Maps, along with the administrative areas that contain them. Coverage is worldwide.
The gazetteer is built using Free Software and Free Data. The public server is community supported, so please go easy on it, or consider deploying your own if your app takes off.
The easy way is a client SDK
There are client SDKs for JavaScript, Swift, Kotlin, Python and Rust. You give one a region and some text, and it fetches the tiles, searches them locally and hands back ranked places. It also snaps your location to the coarse grid the server accepts, so the precise location never leaves the device. You can call the XRPC API directly, but the SDK already does the careful bits. The SDKs are pre-release, so expect rough edges.
Never automatically store user locations, EVER
App developers cannot rely on users making informed decisions about location safety. Users often don't understand the stakes and don't take the time to figure it out, until it's too late. App developers -- meaning YOU -- are responsible for the safety of YOUR users.
Our key recommendation to location-based app developers is:
NEVER AUTOMATICALLY STORE THE EXACT LOCATION OF YOUR USERS.
We cannot state this strongly enough. You do not know who might consume the records you create on your users' behalf, or which authoritarian actor might subpoena your service's database. You do not know who might attempt to track your users with harmful intent.
If your application reads GPS or location data from a client, never store the coordinates directly -- instead use the data to provide a list of public locations that a user can select from. That's what the ATGeo lookup service is for. If your app UX doesn't support that, then store an H3 grid cell at a very low granularity. This gives your users a measure of safety and plausible deniability when using your app.
Using the Lexicon in your own apps
The ATGeo Place lexicon is designed to be interoperable, composable, traceable, and extensible.
Interoperability
When AT Protocol applications use the same lexicon to reference and describe places, they can reuse each other's place data, and applications can build geographic views and connections based on feeds from other applications.
Composability
The ATGeo Place lexicon is designed to function both as the description of a place, and as a reference to a place.
ATGeo gazetteers, like places.atgeo.org, return JSON objects that can be incorporated directly into AT Protocol records without modification, because they follow the org.atgeo.place lexicon definition and use the AT Protocol data model.
A copy keeps the gazetteer's origin. Licensing and attribution sit in the tile the place came from, not in the place, so if you pass data along you're the one conveying it and owe the source its credit. The OpenStreetMap, Overture Places and Overture Divisions pages say what each one needs.
Extensibility
The Place lexicon functions like an interface in Golang or duck-typing in Python: If application-specific location lexicons implement their place data using the same "shape", then ATGeo-aware applications across the ATmosphere can consume those records, without having to understand each and every lexicon.
Traceability
There's a lot of place data outside the ATmosphere, like in OpenStreetMap or Overture Maps. We call this reference data.
Every reference place in ATGeo has an origin, a URN of the form urn:atgeo:{dataset}:{collection}:{id}, that says where it came from and what its ID was in the original dataset. This means that place records that originate from some off-protocol authority can be traced back to that origin, and changes tracked over time.
Composability and traceability combine to allow applications to safely publish records that discard place attributes they don't need. Other applications can recover the discarded attributes by looking up the origin in a gazetteer, if needed, or by going to the original dataset.