/v1/geocode
Place name to coordinates
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/marine-api/v1/geocode" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/marine-api/v1/geocode", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/marine-api/v1/geocode");
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/marine-api/v1/geocode",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"count": 5,
"query": "Honolulu",
"results": [
{
"name": "Honolulu",
"region": "Hawaii",
"country": "United States",
"latitude": 21.30694,
"timezone": "Pacific/Honolulu",
"longitude": -157.85834,
"population": 350964,
"country_code": "US"
},
{
"name": "Honolulu",
"region": "North Carolina",
"country": "United States",
"latitude": 35.36294,
"timezone": "America/New_York",
"longitude": -77.28163,
"country_code": "US"
},
{
"name": "Honolulu",
"region": "Karas Region",
"country": "Namibia",
"latitude": -27.98517,
"timezone": "Africa/Windhoek",
"longitude": 18.77134,
"country_code": "NA"
},
{
"name": "Honolulu",
"region": "Central Finland",
"country": "Finland",
"latitude": 62.02538,
"timezone": "Europe/Helsinki",
"longitude": 26.07524,
"country_code": "FI"
},
{
"name": "Honolulu Zoo",
"region": "Hawaii",
"country": "United States",
"latitude": 21.27361,
"timezone": "Pacific/Honolulu",
"longitude": -157.82028,
"country_code": "US"
}
]
},
"meta": {
"timestamp": "2026-06-08T01:20:12.364Z",
"request_id": "ea3cfe94-b276-40b5-ace7-2d3de2d6050f"
},
"status": "ok",
"message": "Geocode retrieved successfully",
"success": true
}