Μετάβαση στο περιεχόμενο
GET /v1/lookup

Look up OSM objects by id

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/geocoding-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

curl "https://api.oanor.com/geocoding-api/v1/lookup" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/geocoding-api/v1/lookup", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/geocoding-api/v1/lookup");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/geocoding-api/v1/lookup",
    headers={"x-oanor-key": "oanor_test_..."}
)

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "count": 2,
        "results": [
            {
                "lat": 52.5173885,
                "lon": 13.3951309,
                "name": "Berlin",
                "type": "administrative",
                "osm_id": 62422,
                "address": {
                    "city": "Berlin",
                    "country": "Germany",
                    "country_code": "de",
                    "ISO3166-2-lvl4": "DE-BE"
                },
                "category": "boundary",
                "osm_type": "relation",
                "place_id": 144602669,
                "importance": 0.8522196536088086,
                "place_rank": 7,
                "addresstype": "city",
                "boundingbox": [
                    52.3382448,
                    52.6755087,
                    13.088345,
                    13.7611609
                ],
                "display_name": "Berlin, Germany"
            },
            {
                "lat": 52.5173885,
                "lon": 13.3951309,
                "name": "Berlin",
                "type": "city",
                "osm_id": 240109189,
                "address": {
                    "city": "Berlin",
                    "country": "Germany",
                    "country_code": "de",
                    "ISO3166-2-lvl4": "DE-BE"
                },
                "category": "place",
                "osm_type": "node",
                "place_id": 144598842,
                "importance": 0.20000999999999997,
                "place_rank": 15,
                "addresstype": "city",
                "boundingbox": [
                    52.3573885,
                    52.6773885,
                    13.2351309,
                    13.5551309
                ],
                "display_name": "Berlin, Germany"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-05-29T20:06:49.952Z",
        "request_id": "458d08e4-10e6-4332-a08c-7b31b4f68ef9"
    },
    "status": "ok",
    "message": "Lookup retrieved successfully",
    "success": true
}