Places you can build on
A place lookup for check-ins, photo locations and maps, run in Europe, for anyone to use.
Many apps need to show geographic locations. A few American companies are presently the main suppliers of this data, shared through API keys and charging usage fees. They also gain access to user data.
places.eurosky.tech offers open geographic data. We use Foursquare Open Source Places, Overture Maps and OpenStreetMap, with about 112 million places worldwide, refreshed monthly. There is no key, no account and no cookie, and no logging of people’s locations. The code is open source.
suggestions live
POST https://places.eurosky.tech/v1/suggestionsWhat someone at a position could attach to a check-in or a photo: the places nearby, the street, and every area around them from the neighbourhood to the country. The app shows the list, the person picks, and the app publishes only the level they chose. The position goes in the body, never in the URL; the answer is not cached.
curl -s https://places.eurosky.tech/v1/suggestions \
-H 'content-type: application/json' \
-d '{"lat": 52.4867, "lng": 13.4245, "limit": 2}'
| field | required | meaning |
|---|---|---|
lat, lng | yes | WGS84 degrees |
radius | 50–2000, default 500 | metres to look for places |
limit | 1–100, default 30 | places to return |
// answer at Hermannplatz, Berlin (shortened)
{
"places": [
{ "origin": "urn:atgeo:foursquare.com:place:4ae774f1f964a5207dab21e3",
"sameAs": ["urn:atgeo:openstreetmap.org:node:3167656606",
"urn:atgeo:overturemaps.org:place:adc6176b-5d09-4dac-89a7-3649b18e525e"],
"name": "McDonald's", "category": "Fast Food Restaurant", "group": "food_drink",
"lat": 52.486762, "lng": 13.424558, "distance": 8,
"checkins": { "total": 0, "last30d": 0 } }
],
"street": { "name": "Hermannplatz", "lat": 52.486935, "lng": 13.425165 },
"areas": [
{ "origin": "urn:atgeo:overturemaps.org:division:ae5cf3f8-c895-438d-a515-3c4d280af49f",
"name": "Hermannplatz", "subtype": "microhood", "country": "DE", "lat": 52.487089, "lng": 13.424802 },
{ "origin": "urn:atgeo:overturemaps.org:division:a3862542-3cfa-4599-83ba-8a956ea1dc51",
"name": "Neukölln", "subtype": "macrohood", "country": "DE", "lat": 52.477131, "lng": 13.442085 },
{ "origin": "urn:atgeo:overturemaps.org:division:59f212f3-4e73-45d4-aca6-a8c5cb0c2bfd",
"name": "Berlin", "subtype": "region", "cityState": true, "country": "DE", "lat": 52.506935, "lng": 13.397483 },
{ "origin": "urn:atgeo:overturemaps.org:division:567d1698-7209-4b94-b7b8-0bc71bde0104",
"name": "Deutschland", "subtype": "country", "country": "DE", "lat": 51.164204, "lng": 10.579249 }
]
}
places: one entry per real place, ranked.originis its ID in the most stable source,sameAsthe same place in the other sources;groupis a coarse kind (food and drink, sights, transit, …).checkins: how often people pinned the place in posts published on the network (place pins), in total and in the last 30 days; popular places rank higher.street: the nearest street, with a point in its middle (not the person's position), ornull.areas: the areas around the position, smallest first, each with a point inside it. Publish that point, not the person's, when they pick an area.cityState: truemarks cities that Overture files as regions (Berlin, Hamburg, Vienna, Prague, Seoul, …): treat that area as the city and the city-level areas inside it as its districts.
search live
POST https://places.eurosky.tech/v1/searchType-ahead for a place picker: what the person is typing and, if the app has it, where they are, both in the body. Notable places and every area match worldwide in all their names and languages ("Brandenburg Gate", "Berlino"); with a position, everything within two kilometres matches too. Send it after about 150 ms without typing, as the panel above does.
curl -s https://places.eurosky.tech/v1/search \
-H 'content-type: application/json' \
-d '{"q": "Brandenb", "lat": 52.4867, "lng": 13.4245, "limit": 3}'
| field | required | meaning |
|---|---|---|
q | yes, 1–100 characters | fewer than two letters or digits give no results |
lat, lng | no, together | without them only notable places and areas are searched |
limit | 1–30, default 10 |
Each result has kind (place or area), origin, sameAs, name, how it matched (start, word, other_name, approximate), a category or area type, lat, lng and, with a position, distance in metres.
squares live
GET https://places.eurosky.tech/v1/squares/{lat},{lng}For apps that would rather not send a precise position at all: everything in one square of 0.01° × 0.01° (about 1.1 × 0.7 km in Berlin), which the app then filters and ranks on the device. Name the square by its south-west corner, rounding the position down to two decimals. Everyone in a square asks for the same URL, so answers are cacheable for an hour and can sit behind any CDN.
curl -s https://places.eurosky.tech/v1/squares/52.48,13.42
- More than two decimals, other spellings of a square and any query parameter except
pageare refused (400 TooPrecise), so a careless client cannot leak its position in the URL. placesas in suggestions withoutdistance, 500 per page, most important first;nextlinks the following page.areason the first page: every area overlapping the square, withwhole: truewhen it covers all of it and otherwise itsoutlineinside the square, so the app can tell which areas its position is in.
getPlace live
GET https://places.eurosky.tech/xrpc/org.atgeo.getPlace?uri={urn}One place or area by its ID, answered as an org.atgeo.place record. This is the lookup of the ATGeo gazetteer, the place-data effort of the AT Protocol community, so ATGeo clients can use this service as a gazetteer. IDs are ATGeo URNs, urn:atgeo:{dataset}:{collection}:{id}, the same origin and sameAs values every other endpoint returns.
curl -s 'https://places.eurosky.tech/xrpc/org.atgeo.getPlace?uri=urn:atgeo:foursquare.com:place:691f0b57dbce331e6465f8d0'
{ "uri": "https://places.eurosky.tech/xrpc/org.atgeo.getPlace?uri=urn%3Aatgeo%3Afoursquare.com%3Aplace%3A691f0b57dbce331e6465f8d0",
"record": {
"$type": "org.atgeo.place",
"origin": "urn:atgeo:foursquare.com:place:691f0b57dbce331e6465f8d0",
"name": "Brandenburger Tor",
"locations": [{ "$type": "community.lexicon.location.geo", "latitude": "52.516257", "longitude": "13.377633" }],
"attributes": { "category": "Historic and Protected Site" },
"relations": {
"within": [
{ "uri": "urn:atgeo:overturemaps.org:division:567d1698-…", "name": "Deutschland", "type": "country" },
{ "uri": "urn:atgeo:overturemaps.org:division:59f212f3-…", "name": "Berlin", "type": "region" },
{ "uri": "urn:atgeo:overturemaps.org:division:1a6a8f16-…", "name": "Mitte", "type": "locality" }
],
"sameAs": [{ "uri": "urn:atgeo:openstreetmap.org:way:518071791", "name": "Brandenburger Tor" }]
} } }
Unknown IDs get 400 {"error": "PlaceNotFound"}, as from garganorn. Answers are public and cacheable for an hour.
records draft
Once someone has picked a place, the app writes it next to the post. We propose one small record for check-ins and for where photos and videos were taken, social.eurosky.place.pin: the place's URN plus the part of the place readers need to show it, put it on a map and group posts by it, at the precision the author chose, never the device's position. It is a draft for the ATGeo working group, and its name can still change.
- The proposal, with the lexicon and examples
- The discussion on the atmosphere community forum
// demo: places that know their account
Berlin storefronts maps 505 places whose own website domain is also the handle of an account on the network, with each account's latest posts. Only whoever controls a domain can make it a handle, so each link is verified without the business doing anything. Claiming a place, so its owner can add opening hours, photos and a description, comes next.
data
Three open sources, loaded worldwide once a month, after Overture and Foursquare publish their releases. The same place in two sources is shown once, with the others in sameAs; records that only one weak source vouches for are kept out of suggestions.
| source | licence | credit when you show the data |
|---|---|---|
| Foursquare Open Source Places | Apache 2.0 | Foursquare |
| Overture Maps | CDLA Permissive 2.0; ODbL for parts from OpenStreetMap | Overture Maps Foundation |
| OpenStreetMap | ODbL 1.0 | © OpenStreetMap contributors |
A month's load keeps the IDs each source uses; Foursquare and Overture IDs are the most stable, OpenStreetMap's can change when someone redraws a place, which is why every place carries sameAs.
privacy
- Positions travel in request bodies, never in URLs, and nothing that carries one is logged: the server keeps no access log, and its error log leaves request details out.
- No key, no account and no cookie: requests carry nothing that says who sent them. To apply the limits, the server counts requests per address in memory for a minute, then forgets the address; it is never logged or stored.
- Apps that would rather not send a precise position use squares, cacheable answers for a whole square kilometre.
- The service runs on a dedicated server of ours in a Hetzner data centre in Germany. These pages load their fonts and scripts from it too; the demo map adds map tiles from OpenFreeMap (no cookies), avatars from Bluesky's image server and posts from Eurosky's public API.
fair use
The service is free and needs no key. Help keep it that way: wait about 150 ms after the last keystroke before searching, cache squares, and ask for one area of the map at a time. If you expect more than a few requests a second, or want to build something on it, write to team@eurosky.tech first. There is no service-level agreement yet.
| limit per client address | requests a minute |
|---|---|
suggestions | 300 |
search, squares, getPlace | 600 each |
Past a limit the answer is 429 {"error": "RateLimited"} with Retry-After; when the service is too busy to answer in time, 503 {"error": "Busy"} with Retry-After: 5. Both are safe to retry after that wait. The limits count each phone or browser on its own, so an app's users do not share one budget.
The public endpoints answer requests from web pages on any domain (CORS).
status
What runs today and what is still being built.
- suggestions, search, squareslive
- org.atgeo.getPlacelive
- monthly worldwide refreshlive
- Berlin storefronts demolive
- place-pin recorddraft
- check-in counts from published pinslive
- places claimed by their ownersplanned
- limits per clientlive