https://graphhopper.com/api/1/cluster?key=<your_key>. The solution will be provided in the JSON response.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?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
}
]
}'{
"copyrights": [
"GraphHopper",
"OpenStreetMap contributors"
],
"status": "waiting_in_queue",
"waiting_time_in_queue": 0,
"processing_time": 4900,
"clusters": [
{
"quantity": 40,
"ids": [
"GraphHopper GmbH"
]
}
]
}