curl -X POST "https://goglobe.live/api/v1/routing/optimization" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"jobs":[{"id":1,"location":[-6.26,53.33]},{"id":2,"location":[-6.27,53.34]}],"vehicles":[{"id":1,"start":[-6.26,53.33],"end":[-6.26,53.33]}]}'
import requests
r = requests.post("https://goglobe.live/api/v1/routing/optimization",
headers={"X-API-Key": "YOUR_API_KEY"},
json={
"jobs": [{"id":1,"location":[-6.26,53.33]},{"id":2,"location":[-6.27,53.34]}],
"vehicles": [{"id":1,"start":[-6.26,53.33],"end":[-6.26,53.33]}],
})
print(r.json())
const r = await fetch("https://goglobe.live/api/v1/routing/optimization", {
method: "POST",
headers: { "X-API-Key": "YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
jobs: [{id:1, location:[-6.26,53.33]}, {id:2, location:[-6.27,53.34]}],
vehicles: [{id:1, start:[-6.26,53.33], end:[-6.26,53.33]}],
})
});
console.log(await r.json());
Response · 200 OK
{
"status": "success",
"data": {
"routes": [],
"summary": {
"cost": 0,
"distance_m": 0,
"duration_s": 0
}
}
}