POST pos/delivery/optimizeroute
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
RouteOptimizationRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Origin | Location |
None. |
|
| Destination | Location |
None. |
|
| Waypoints | Collection of Waypoint |
None. |
Request Formats
application/json, text/json
Sample:
{
"Origin": {
"Latitude": 1.1,
"Longitude": 2.1
},
"Destination": {
"Latitude": 1.1,
"Longitude": 2.1
},
"Waypoints": [
{
"Id": 1,
"Location": {
"Latitude": 1.1,
"Longitude": 2.1
}
},
{
"Id": 1,
"Location": {
"Latitude": 1.1,
"Longitude": 2.1
}
}
]
}
application/xml, text/xml
Sample:
<RouteOptimizationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Mobile.WebApi.Models.Pos">
<Destination>
<Latitude>1.1</Latitude>
<Longitude>2.1</Longitude>
</Destination>
<Origin>
<Latitude>1.1</Latitude>
<Longitude>2.1</Longitude>
</Origin>
<Waypoints>
<Waypoint>
<Id>1</Id>
<Location>
<Latitude>1.1</Latitude>
<Longitude>2.1</Longitude>
</Location>
</Waypoint>
<Waypoint>
<Id>1</Id>
<Location>
<Latitude>1.1</Latitude>
<Longitude>2.1</Longitude>
</Location>
</Waypoint>
</Waypoints>
</RouteOptimizationRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.