{
    "service": "API de Roteamento Maritimo (aproximado)",
    "auth": "nenhuma - endpoint publico",
    "methods": [
        "GET",
        "POST"
    ],
    "get_example": "/index.php?origin_lat=40.83799&origin_lon=14.27623&destination_lat=-23.95109&destination_lon=-46.35358&current_lat=6.8756666&current_lon=-25.44169&vessel_name=MV+Exemplo",
    "post_json_example": {
        "origin": {
            "lat": 40.83799,
            "lon": 14.27623,
            "name": "Porto de Napoles"
        },
        "destination": {
            "lat": -23.95109,
            "lon": -46.35358,
            "name": "Porto de Santos"
        },
        "current_position": {
            "lat": 6.8756666,
            "lon": -25.44169,
            "reported_at": "2026-07-10T12:00:00Z"
        },
        "vessel_name": "MV Exemplo",
        "interval_nm": 400
    },
    "required_params": [
        "origin_lat/origin_lon (ou origin.lat/origin.lon)",
        "destination_lat/destination_lon (ou destination.lat/destination.lon)"
    ],
    "optional_params": [
        "current_lat/current_lon",
        "origin_name",
        "destination_name",
        "vessel_name",
        "interval_nm (padrao 400 nm)",
        "route_id"
    ],
    "historico": "GET /route.php?route_id=... ou /route.php?vessel_name=..."
}