--- title: "Zeo Route Planner API - Get Route Optimize Info | Fleet Management & Route Optimization API" author: Zeo Route Planner Team description: “Retrieve the optimized sequence of stops for a route, helping cut down fuel use and save time.” tags: [API documentation, get route optimize info, fleet management, route optimization, route management, Zeo, route optimization] url: https://api.zeorouteplanner.com/get-route-optimize-info.html canonical_url: https://api.zeorouteplanner.com/get-route-optimize-info.html layout: page --- # Get Route Optimize Info API Endpoint **API Docs / Store Owner Api's / Get Route Optimized Info** ## Get Route Optimized Info This endpoint gets route-optimized information. Include the driver_id of the route in the query parameters. {{base_ur}}="https://zeorouteplanner.com/" #### HTTP Request **GET** `{{base_url}}/api/v5/routes/:route_id/optimize_route` #### Query Parameters | Parameter | Default | Description | |-----------|---------|-------------| | `api_key` | `""` | Api Access key | | `driver_id` | `[{}]` | Driver Id of the route | ## Sample Request **Copy Code** ```bash curl --location -g --request GET '{{base_url}}/api/v5/routes/:route_id/optimize_route' \ --header 'Content-Type: application/json' \ --data-raw '{ "api_key" : "api_key", "driver_id": 44968 }' ``` ## Response The above command returns JSON structured like this: **Copy Code** ```json { "code": 200, "status": true, "message": "success", "data": { "optimized": true, "legs": [ { "distance": { "text": "0 km", "value": 0 }, "duration": { "text": "", "value": 0 }, "end_address": "17475 Northwest 27th Avenue, Miami Gardens, FL, USA", "start_address": "new york", "start_location": { "lat": 25.9330248, "lng": -80.2445472 }, "end_location": { "lat": 25.9330248, "lng": -80.2445472 }, "stop_id": "222473116", "optimize_status": "normal", "stop_type": "delivery", "arr_time": 0, "end_time": 600, "optimize_order": 1, "stop_order": null, "share_stop_id": null, "address_typed": {}, "overview_polyline": "cah}CnwwhN" }, { "distance": { "text": "0 km", "value": 0 }, "duration": { "text": "10 mins", "value": 600 }, "end_address": "new york", "start_address": "17475 Northwest 27th Avenue, Miami Gardens, FL, USA", "start_location": { "lat": 25.9330248, "lng": -80.2445472 }, "end_location": { "lat": 25.9330248, "lng": -80.2445472 }, "stop_id": null, "optimize_status": "normal", "stop_type": "normal", "arr_time": 600, "end_time": 0, "optimize_order": 2, "stop_order": 2000, "share_stop_id": 0, "address_typed": { "delivery_count": 0 }, "overview_polyline": "cah}CnwwhN" } ] } } ```