MOVER BUSINESS API
  1. Utility
MOVER BUSINESS API
  • Orders
    • Estimate / Coverage
      POST
    • Book Vehicle
      POST
    • Invoice
      GET
    • Status
      GET
    • Cancel
      POST
    • Partner Location
      GET
    • Pool
      POST
  • Utility
    • Segregate Delivery Locations
      POST
  • Webhooks
  1. Utility

Segregate Delivery Locations

POST
https://api.boxnmove.comhttps://api.boxnmove.com/segregate-locations
This endpoint allows you to segregate delivery locations among a specified number of partners. By providing an array of delivery locations and the number of partners, the API will return segregated location groups along with directions URLs for optimized routes.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.boxnmove.com/segregate-locations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
    "locations": [
        {
            "lat": 28.414305593982164,
            "lon": 77.03868134906679,
            "address": "Address 1",
            "delivery_note": "Note",
            "contact_mobile": "9999999999",
            "contact_name": "Name",
            "udf1": ""
        },
         {
            "lat": 28.41374765120315,
            "lon": 77.08664250071794,
            "address": "Address 2",
            "delivery_note": "Note",
            "contact_mobile": "9999999999",
            "contact_name": "Name",
            "udf1": ""
        },
        {
            "lat": 28.504160303411552,
            "lon": 77.0477673725874,
            "address": "Address 3",
            "delivery_note": "Note",
            "contact_mobile": "9999999999",
            "contact_name": "Name",
            "udf1": ""
        }
    ],
    "no_of_partners": 2,
    "pickup": {
        "lat": 28.4265048692082,
        "lon": 77.05256771772372,
        "address": "Pickup Address",
        "delivery_note": "Note",
        "contact_mobile": "9999999999",
        "contact_name": "Name",
        "udf1": ""
    }
}'
Response Response Example
[
    {
        "Locations": [
            {
                "lat": 28.4265048692082,
                "lon": 77.05256771772372,
                "address": "Pickup Address",
                "delivery_note": "Note",
                "contact_mobile": "9999999999",
                "contact_name": "Name",
                "udf1": ""
            },
            {
                "lat": 28.414305593982164,
                "lon": 77.03868134906679,
                "address": "Address 1",
                "delivery_note": "Note",
                "contact_mobile": "9999999999",
                "contact_name": "Name",
                "udf1": ""
            },
            {
                "lat": 28.41374765120315,
                "lon": 77.08664250071794,
                "address": "Address 2",
                "delivery_note": "Note",
                "contact_mobile": "9999999999",
                "contact_name": "Name",
                "udf1": ""
            }
        ],
        "DirectionsUrl": "https://www.google.com/maps/dir/28.4265048692082,77.05256771772372/28.414305593982164,77.03868134906679/28.41374765120315,77.08664250071794/"
    },
    {
        "Locations": [
            {
                "lat": 28.4265048692082,
                "lon": 77.05256771772372,
                "address": "Pickup Address",
                "delivery_note": "Note",
                "contact_mobile": "9999999999",
                "contact_name": "Name",
                "udf1": ""
            },
            {
                "lat": 28.504160303411552,
                "lon": 77.0477673725874,
                "address": "Address 3",
                "delivery_note": "Note",
                "contact_mobile": "9999999999",
                "contact_name": "Name",
                "udf1": ""
            }
        ],
        "DirectionsUrl": "https://www.google.com/maps/dir/28.4265048692082,77.05256771772372/28.504160303411552,77.0477673725874/"
    }
]

Request

Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string username:password
Example:
Authorization: Basic *****************
Body Params application/json
locations
array [object {7}] 
required
lat
number 
required
lon
number 
required
address
string 
required
delivery_note
string 
required
contact_mobile
string 
required
contact_name
string 
required
udf1
string 
required
no_of_partners
integer 
required
pickup
object 
required
lat
number 
required
lon
number 
required
address
string 
required
delivery_note
string 
required
contact_mobile
string 
required
contact_name
string 
required
udf1
string 
required
Examples

Responses

🟢200Success
application/json
Body
array of:
Locations
array [object {7}] 
required
lat
number 
required
lon
number 
required
address
string 
required
delivery_note
string 
required
contact_mobile
string 
required
contact_name
string 
required
udf1
string 
required
DirectionsUrl
string 
required
Previous
Pool
Next
Webhooks
Built with