https://graphhopper.com/api/1/cluster/calculate?key=<your_key> and fetch the job_id.status=finished. Do this with a GET requesthttps://graphhopper.com/api/1/cluster/solution/<job_id>?key=<your_key>.key: ********************{
"configuration": {
"response_type": "json",
"routing": {
"profile": "car",
"cost_per_second": 1,
"cost_per_meter": 0
},
"clustering": {
"num_clusters": 10,
"max_quantity": 50,
"min_quantity": 30
}
},
"clusters": [
{
"name": "GraphHopper GmbH",
"center": {
"lon": 11.53941,
"lat": 48.118434,
"street_hint": "Lindenschmitstraße 52"
},
"min_quantity": 10,
"max_quantity": 10
}
],
"customers": [
{
"id": "GraphHopper GmbH",
"address": {
"lon": 11.53941,
"lat": 48.118434,
"street_hint": "Lindenschmitstraße 52"
},
"quantity": 10
}
]
}curl --location '/cluster/calculate?key=%3Capi-key%3E' \
--header 'Content-Type: application/json' \
--data '{
"configuration": {
"response_type": "json",
"routing": {
"profile": "car",
"cost_per_second": 1,
"cost_per_meter": 0
},
"clustering": {
"num_clusters": 10,
"max_quantity": 50,
"min_quantity": 30
}
},
"clusters": [
{
"name": "GraphHopper GmbH",
"center": {
"lon": 11.53941,
"lat": 48.118434,
"street_hint": "Lindenschmitstraße 52"
},
"min_quantity": 10,
"max_quantity": 10
}
],
"customers": [
{
"id": "GraphHopper GmbH",
"address": {
"lon": 11.53941,
"lat": 48.118434,
"street_hint": "Lindenschmitstraße 52"
},
"quantity": 10
}
]
}'{
"job_id": "44886560-b584-4da5-b245-768151dacd8f"
}