/v1/nearby
Seaports near a coordinate (radius search)
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
…