/v1/nearby
Seaports near a coordinate (radius search)
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/ports-api/v1/nearby" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ports-api/v1/nearby", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ports-api/v1/nearby");
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/ports-api/v1/nearby",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"count": 20,
"center": {
"lat": 53.55,
"lon": 9.99
},
"results": [
{
"name": "Hamburg-Mitte",
"locode": "DEHTJ",
"country": "DE",
"latitude": 53.55,
"longitude": 10.0167,
"connections": {
"rail": false,
"road": true,
"airport": false
},
"distance_km": 1.76,
"subdivision": "HH",
"country_name": "Germany"
},
{
"name": "Hamburg",
"locode": "DEHAM",
"country": "DE",
"latitude": 53.5167,
"longitude": 9.9333,
"connections": {
"rail": true,
"road": true,
"airport": true
},
"distance_km": 5.27,
"subdivision": "HH",
"country_name": "Germany"
},
{
"name": "Altenwerder",
"locode": "DEHHV",
"country": "DE",
"latitude": 53.5167,
"longitude": 9.9167,
"connections": {
"rail": false,
"road": true,
"airport": false
},
"distance_km": 6.1,
"subdivision": "HH",
"country_name": "Germany"
},
{
"name": "Harburg",
"locode": "DEHBU",
"country": "DE",
"latitude": 53.4667,
"longitude": 9.9833,
"connections": {
"rail": false,
"road": false,
"airport": false
},
"distance_km": 9.27,
"subdivision": "HH",
"country_name": "Germany"
},
{
"name": "Finkenwerder",
"locode": "DEXFW",
"country": "DE",
"latitude": 53.5333,
"longitude": 9.85,
"connections": {
"rail": false,
"road": true,
"airport": true
},
"distance_km": 9.44,
"subdivision": "HH",
"country_name": "Germany"
},
{
"name": "Bullenhausen",
"locode": "DEBEU",
"country": "DE",
"latitude": 53.45,
"longitude": 10.0833,
"connections": {
"rail": false,
"road": true,
"airport": false
},
"distance_km": 12.72,
"subdivision": "NI",
"country
…