Eurosky / places
// for developers

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.

POST places.eurosky.tech/v1/search
Live: what you type goes to the API as you type, from the centre of the city you pick, never your own position. Nothing is logged. Pick a result to see its full record.

suggestions live

$POST https://places.eurosky.tech/v1/suggestions

What 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}'
fieldrequiredmeaning
lat, lngyesWGS84 degrees
radius50–2000, default 500metres to look for places
limit1–100, default 30places 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 }
  ]
}

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

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.

// 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.

sourcelicencecredit when you show the data
Foursquare Open Source PlacesApache 2.0Foursquare
Overture MapsCDLA Permissive 2.0; ODbL for parts from OpenStreetMapOverture Maps Foundation
OpenStreetMapODbL 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

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 addressrequests a minute
suggestions300
search, squares, getPlace600 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.