← Toutes les opérations
GET/v1/route

Compute an itinerary (GET, query string)

Same semantics as POST /v1/route but with origin/destination passed as `lat,lng` pairs on the query string. Convenient for quick sanity checks from cURL; prefer POST for multi-stop or typed payloads.

Paramètres

NomEmplacementTypeDescription
origin requiredquerystring`lat,lng` pair.
destination requiredquerystring`lat,lng` pair.
mode queryTravelMode
language querystring

Réponses

  • 200Route computed.

    object

Exemples de code

curl "https://api.afrimap.ci/v1/route?origin=5.3197,-4.0167&destination=5.3480,-3.9904&mode=auto&language=fr" \
  -H "X-AfriMap-Key: $AFM_KEY"

Testez-le

Essayer en direct

GET /v1/route

Collez une clé sandbox afm_test_…. La requête part directement de votre navigateur vers le gateway, aucun proxy côté portail.

`lat,lng` pair.

`lat,lng` pair.

GET http://172.28.0.8:8090/v1/route?origin=5.3197%2C-4.0167&destination=5.3480%2C-3.9904&language=fr