Plan Delivery Route

Determine delivery order and optimal path for breweries in Seattle
curl --compressed -X POST \
  'https://api.targomo.com/fleetplanner/v1/api/key-auth/optimizations?key=__targomo_key_here__' \
  -H 'Content-Type: application/json' \
  -d '{
	"optimizationAlgorithm": "GREEDY_TSP",
	"stores": [{
		"uuid": "depot1",
		"address": {
			"lat": 47.62145,
			"lng": -122.34964
		}
	}],
	"orders": [
		{
			"uuid": "HalesAle",
			"storeUuid": "depot1",
			"address": {
				"lat": 47.65924,
				"lng": -122.36559,
				"avgHandlingTime": 250
			},

		},{
			"uuid": "FremontBrewing",
			"storeUuid": "depot1",
			"address": {
				"lat": 47.64906,
				"lng": -122.34445,
				"avgHandlingTime": 250
			},

		},{
			"uuid": "BigTime",
			"storeUuid": "depot1",
			"address": {
				"lat": 47.65786,
				"lng": -122.31356,
				"avgHandlingTime": 250
			},

		}
	],
	"transports": [{
		"vehicle": {
			"uuid": "v1",
			"storeUuid": "depot1"
		}
	}],
	"optimizationMetadata": {
		"geojsonCreation": "ROUTING_SERVICE",
		"travelOptions": {
			"travelType": "bike",
			"maxEdgeWeight": 7200,
			"serviceUrl": "https://api.targomo.com/northamerica/",
			"serviceKey": "__targomo_key_here__"
		}
	}
}'
content_copy
Copied to clipboard