--- title: "Zeo Route Planner API - Pickup Delivery Get Route Optimized Info | Fleet Management & Route Optimization API" author: Zeo Route Planner Team description: “This retrieves the optimized version of a pickup or delivery route—showing the best order of stops for efficiency and cost savings.” tags: [API documentation, pickup delivery get route optimized info, fleet management, route optimization, route management, Zeo, pickup delivery] url: https://api.zeorouteplanner.com/pickup-delivery-get-route-optimized-info.html canonical_url: https://api.zeorouteplanner.com/pickup-delivery-get-route-optimized-info.html layout: page --- # Pickup Delivery Get Route Optimized Info API Endpoint **API Docs / Pickup Deliveries / Get Route Optimized Info** This endpoint gets optimized route information. Include driver_id query parameters of the route. {{base_ur}}="https://zeorouteplanner.com/" #### HTTP Request **GET** `{{base_url}}/api/v6/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/v6/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": "11 km", "value": 11545 }, "duration": { "text": "22 mins 55 secs", "value": 1375 }, "end_address": "Hotel Sea Princess, Juhu Road, near Juhu Beach, Airport Area, Juhu, Mumbai, Maharashtra, India", "start_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India", "start_location": { "lat": 19.1190749, "lng": 72.8951151 }, "end_location": { "lat": 19.09326, "lng": 72.8281264 }, "stop_id": "16921855", "optimize_status": "normal", "stop_type": "pickup", "arr_time": 1375, "end_time": 1675, "optimize_order": 1, "stop_order": 4, "share_stop_id": 0, "address_typed": { "delivery_count": 2 }, "overview_polyline": "ieusByg|{L|@Dj@N\\Nb@d@`@h@HRF`@MnAFvBL\\|APhA[NK^LXCj@WvBUh@EZXb@BbACh@K`AdAhAvAZjBDx@z@xAhD|ElA~Dz@nAn@LhBf@rCv@`BP|DX~BL`A?n@GrCy@l@Cx@@dBHv@NbAf@hFnCr@h@e@r@}@dA_DjCyBdBiB|Ak@n@_@j@k@xAQz@Gv@SvHEl@Mv@YhAg@bBsBvHu@|C_IlYw@hDkAhGgCtNs@nEo@jDn@t@f@bAb@hAPbAbAxK^dDAbABj@AjAM`AcAdD]tAMz@]tCOzAmBlIcCjJ?j@JT\\ZvUxCMfAQx@C^m@vBm@vAqAvB{EzGzDvB~BhAbUbHXPj@jGcAxMCpBb@xN@~AKlApCj@jBZpBNjNClAI@R}E`OyC~QoDtWaC|O?LFXJLPFZBlI]lHy@nCg@tFk@pBOT?^FXRHR\\hBBHFFD@X?~B[dCYHCHGFO@SEaA@WFQHKXMT@vEYxG[x@ADf@" }, { "distance": { "text": "21 km", "value": 21458 }, "duration": { "text": "34 mins 46 secs", "value": 2086 }, "end_address": "Taj Mahal Tower, Mumbai, PJ Ramchandani Marg, Apollo Bandar, Colaba, Mumbai, Maharashtra, India", "start_address": "Hotel Sea Princess, Juhu Road, near Juhu Beach, Airport Area, Juhu, Mumbai, Maharashtra, India", "start_location": { "lat": 19.09326, "lng": 72.8281264 }, "end_location": { "lat": 18.9225854, "lng": 72.8331543 }, "stop_id": "16921852", "optimize_status": "normal", "stop_type": "pickup", "arr_time": 3461, "end_time": 3761, "optimize_order": 2, "stop_order": 1, "share_stop_id": 0, "address_typed": { "delivery_count": 2 }, "overview_polyline": "gdpsBufo{LEg@~C?`@DZLZTh@j@h@Xb@JtNx@`BXz@FrBEn@?t@SnDZHEHONg@^kDhAyHfBuIf@mCx@}LdLLbCFvIB~r@pAtBF~CTtIfAbA@zAC~AW|JwCxBk@~EyAzD{AfBi@pAa@tJsC|Ai@rK`@p@?fAE~@Sv@_@vCcB^QXK~E]xBg@xGq@lAGrRC`JGzAUlTkIrPuGzEuA|AYbHo@bIMpFNbERpI\\fUtCxGx@zDb@`APh@`@hEgBv@_@rBqDd@e@f@SbAQ`B?TCpA[j@YXMZWf@w@bOaXNo@KUCWBWHULQRKZGZBXNNTHX?XFTLLnA~@`MpIjHlE~@v@rHlE~LvGbBj@zEjApBv@nBdA`CzAdA~@n@r@p@f@l@Zn@Pv@Nr@ZrCj@fGz@|Cv@`B\\|Dh@l@PpANlE?nABbAZ|DbBfB`@fALrOh@~@Hn@RlCvAl@Vn@Jb@?zDWzCI`C?rBJrTrAnBTbBXbFdAvEdA|LhBbGl@tATfAJr@A|AI|AMxB[|BOf@H|Bf@n@NrAx@lAdAv@\\t@JvEBfFI`HQR" }, { "distance": { "text": "20 km", "value": 20984 }, "duration": { "text": "35 mins 42 secs", "value": 2142 }, "end_address": "JW Marriott Mumbai Juhu, Juhu Road, Juhu Tara, Juhu, Mumbai, Maharashtra, India", "start_address": "Standard Chartered Mumbai 23-25 M G Road, Mumbai Branch, 23-25, Mahatma Gandhi Road, Azad Maidan, Fort, Mumbai, Maharashtra, India", "start_location": { "lat": 18.9339261, "lng": 72.8313813 }, "end_location": { "lat": 19.1018504, "lng": 72.8262233 }, "stop_id": "16921854", "optimize_status": "normal", "stop_type": "delivery", "arr_time": 6360, "end_time": 6660, "optimize_order": 5, "stop_order": 3, "share_stop_id": 16921852, "address_typed": { "delivery_count": 0 }, "overview_polyline": "y_qrB_zo{LrDc@Yk@Y[w@c@cK}GoAm@qA_@cJuB_Cy@kBa@eB?uBD_ThAoBHe@?SAu@WaA]qFwA_AQ_AOuCSc@Am@Du@R}@^mBr@e@Nm@LgANmAF_AB_AH_J~Am@Tg@Xc@\\_AfA_@\\]N_BVwDRyE^]FYNeAhAa@Ra@FmAFs@H{B`@mADoDAg@CwB]g@EwCAkBIeFIiEUoAM_HoAsBK{EGaDLoJNcACuCC{@M{@a@mAcAsAw@i@Q_Cg@a@E}BLsBXaBNaAFsABiAKsAUgE_@{@Q}LkBuEiAaFeAeBWmBUqTsAsBK_C?{CH{DVg@Aq@Ko@WmCwAm@S}@GqOi@kAMiBa@}DeB_AYmAEqE?qAOs@@}Dk@wBa@sA]oB_@iAQaC]uCk@w@GgASe@Qu@]u@k@i@m@gAcAiC_BcB}@uBy@_B]_D}@_A[}Aw@aH{Du@q@aC{AqDsBgAg@mHkE_MkImBmAQCSDSASE]\\_FpIiHlM[n@O`@Kb@EhBGVKJKBMAu@k@c@Wa@Wu@K_A?_ANc@Rc@`@sBrDyG`DcB_AyMcBmBSsCc@_M_BeW}@aILaHn@{AXwEtAiK|DgDvAmTnIaBV{]Fy@DeHv@_CLOHaCXmARi@RqDtBe@NaATiBFiLc@OB_C|@mDjAyJvCoC`A}C|@wD~@_IjC_B^gAHcBB}@CmJkAqF]sNMmFKg\\w@wIFaCMcDAqFMm@vIU|BaC|Ly@bFi@|DKvAIZOJUAoD[u@Ro@?sBD{@GaBYuNy@c@Ki@Yi@k@[U[Ma@EyE@yGZwEX[TORCXDnAEREFSNyGdAS@OCMIIM_@sBEIQOYKuDVqIdAw@L}@HB\\XHHF@LAHEHw@J" }, { "distance": { "text": "1 km", "value": 1040 }, "duration": { "text": "7 mins 48 secs", "value": 468 }, "end_address": "Juhu Beach, Mumbai, Maharashtra", "start_address": "JW Marriott Mumbai Juhu, Juhu Road, Juhu Tara, Juhu, Mumbai, Maharashtra, India", "start_location": { "lat": 19.1018504, "lng": 72.8262233 }, "end_location": { "lat": 19.1095171, "lng": 72.8241298 }, "stop_id": "16921853", "optimize_status": "normal", "stop_type": "delivery", "arr_time": 6828, "end_time": 7128, "optimize_order": 6, "stop_order": 2, "share_stop_id": 16921852, "address_typed": { "delivery_count": 0 }, "overview_polyline": "_zqsB_}n{Le@HM?MGEGCOBKRME]cBVkBL}H^QEyDb@wHXMRE\\Bj@GLOPYHqA?]DUXAfBmC~@WRJdA" }, { "distance": { "text": "9 km", "value": 9969 }, "duration": { "text": "26 mins 34 secs", "value": 1594 }, "end_address": "Raheja Vihar, Chandivali, Powai, Mumbai, Maharashtra, India", "start_address": "Juhu Beach, Mumbai, Maharashtra", "start_location": { "lat": 19.1095171, "lng": 72.8241298 }, "end_location": { "lat": 19.1190749, "lng": 72.8951151 }, "stop_id": null, "optimize_status": "normal", "stop_type": "normal", "arr_time": 8422, "end_time": 0, "optimize_order": 7, "stop_order": 2000, "share_stop_id": 0, "address_typed": { "delivery_count": 0 }, "overview_polyline": "ogssBenn{LKeAVSlC_A@gBKBAaAGaA@u@CQX@JUCY{@Bg@E[GeEwByFgDs@m@kAsAu@UdBqDsC@_ICyKBU?DeSJgCEoGLuC@y@E{EGe@MmDIYGc@KuD@mDG]GsEAwGBeD@Y|@cE`@wBL{@\\sFr@{EB_@?]GwABkCP_Cf@iBvCuGpBeDv@kDn@{DrEyQp@gDVeBV{BZiBnAuEPw@Fo@@}@GoAkA{M[{CY_A[w@g@u@UUWc@pH_c@z@kDhEuOxBsIj@oBxDoNJy@Dy@JcFHgB\\gBXs@l@mAb@g@r@s@zCgChEgDhAyASKSUiFwC_@Mu@Qy@GkAEi@@i@F}@XmAVm@Hq@@qAE{Gc@cAOwC{@mBe@_@IEU{@oAmA_EiD}E{@yAEy@[kBiAwAaAeAi@JcABc@C[Yi@DwBTk@VYB_@MOJiAZ}AQM]GwBLoAGa@ISa@i@c@e@]Ok@O}@E" } ] } } ```