Dispatch using Lat/Lon Only (JSON)
JSON Request
The follwing request uses Lattiude/Longitude for Vehicle start and finish locations and for stops.
{
"RoutingService":0,
"IsNeedMatchCode":false,
"CurrentTime":"0001-01-01T00:00:00Z",
"DispatchMode":0,
"MinimumOptimization":1,
"DistanceUnit":0,
"Vehicles":[
{
"Name":"V1",
"Email":null,
"Group":null,
"Speed":100,
"MaxStops":0,
"MaxWeight":180,
"MaxSkids":0,
"MaxVolume":0,
"MaxMinutes":0,
"OnTheRoad":false,
"Tin":"0001-01-01T00:00:00Z",
"Tout":"0001-01-01T00:00:00Z",
"StartLocation":{
"MatchCode":0,
"Name":null,
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":0,
"CanArriveEarly":true,
"Distance":0,
"Time":0
},
"FinishLocation":{
"MatchCode":0,
"Name":null,
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":0,
"CanArriveEarly":true,
"Distance":0,
"Time":0
}
}
],
"Locations":[
{
"MatchCode":0,
"Name":"Drop01",
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":4,
"CanArriveEarly":true,
"Distance":0,
"Time":0
},
{
"MatchCode":0,
"Name":"0001",
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.189149,
"Longitude":-73.365788
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":50,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":0,
"CanArriveEarly":true,
"Distance":0,
"Time":0
},
{
"MatchCode":0,
"Name":"0002",
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.170298,
"Longitude":-73.380508
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":50,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":0,
"CanArriveEarly":true,
"Distance":0,
"Time":0
},
{
"MatchCode":0,
"Name":"0003",
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.180726,
"Longitude":-73.365836
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":50,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":0,
"CanArriveEarly":true,
"Distance":0,
"Time":0
},
{
"MatchCode":0,
"Name":"0004",
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.168843,
"Longitude":-73.364452
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":50,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":0,
"CanArriveEarly":true,
"Distance":0,
"Time":0
},
{
"MatchCode":0,
"Name":"0005",
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.170393,
"Longitude":-73.36316
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":50,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":0,
"CanArriveEarly":true,
"Distance":0,
"Time":0
},
{
"MatchCode":0,
"Name":"0006",
"Delivery":null,
"Vehicle":null,
"Description":null,
"Phone":null,
"LatLong":{
"Latitude":42.177239,
"Longitude":-73.35206
},
"Address":null,
"Priority":0,
"Wait":0,
"Volume":0,
"Weight":50,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture2":"0001-01-01T00:00:00Z",
"LocationType":0,
"CanArriveEarly":true,
"Distance":0,
"Time":0
}
]
}
JSON Response
{
"Items":[
{
"Vehicle":{
"Name":"V1",
"Email":"",
"Group":"",
"Speed":100,
"MaxStops":0,
"MaxWeight":180.0,
"MaxSkids":0,
"MaxVolume":0.0,
"MaxMinutes":0,
"OnTheRoad":false,
"Tin":"0001-01-01T00:00:00Z",
"Tout":"0001-01-01T00:00:00Z",
"StartLocation":null,
"FinishLocation":null
},
"Locations":[
{
"MatchCode":0,
"Name":"V1",
"Delivery":"",
"Vehicle":"",
"Description":null,
"Phone":"",
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":0.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00",
"TimeConstraintDeparture":"0001-01-01T00:00:00",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":1,
"CanArriveEarly":true,
"Distance":0.62994611469020911,
"Time":112
},
{
"MatchCode":0,
"Name":"0001",
"Delivery":"",
"Vehicle":"",
"Description":"",
"Phone":"",
"LatLong":{
"Latitude":42.189149,
"Longitude":-73.365788
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":50.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":0,
"CanArriveEarly":true,
"Distance":1.6304780084307644,
"Time":256
},
{
"MatchCode":0,
"Name":"0006",
"Delivery":"",
"Vehicle":"",
"Description":"",
"Phone":"",
"LatLong":{
"Latitude":42.177239,
"Longitude":-73.35206
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":50.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":0,
"CanArriveEarly":true,
"Distance":1.0821800684005407,
"Time":186
},
{
"MatchCode":0,
"Name":"0005",
"Delivery":"",
"Vehicle":"",
"Description":"",
"Phone":"",
"LatLong":{
"Latitude":42.170393,
"Longitude":-73.36316
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":50.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":0,
"CanArriveEarly":true,
"Distance":1.9009608884116755,
"Time":261
},
{
"MatchCode":0,
"Name":"Drop01",
"Delivery":"",
"Vehicle":"",
"Description":"",
"Phone":"",
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":0.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":4,
"CanArriveEarly":true,
"Distance":0.0,
"Time":0
},
{
"MatchCode":0,
"Name":"V1",
"Delivery":"",
"Vehicle":"",
"Description":null,
"Phone":"",
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":0.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00",
"TimeConstraintDeparture":"0001-01-01T00:00:00",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":2,
"CanArriveEarly":true,
"Distance":0.0,
"Time":0
}
]
},
{
"Vehicle":{
"Name":"V1_2",
"Email":"",
"Group":"",
"Speed":100,
"MaxStops":0,
"MaxWeight":180.0,
"MaxSkids":0,
"MaxVolume":0.0,
"MaxMinutes":0,
"OnTheRoad":false,
"Tin":"0001-01-01T00:00:00Z",
"Tout":"0001-01-01T00:00:00Z",
"StartLocation":null,
"FinishLocation":null
},
"Locations":[
{
"MatchCode":0,
"Name":"V1",
"Delivery":"",
"Vehicle":"",
"Description":null,
"Phone":"",
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":0.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00",
"TimeConstraintDeparture":"0001-01-01T00:00:00",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":1,
"CanArriveEarly":true,
"Distance":2.0174679869561758,
"Time":275
},
{
"MatchCode":0,
"Name":"0004",
"Delivery":"",
"Vehicle":"",
"Description":"",
"Phone":"",
"LatLong":{
"Latitude":42.168843,
"Longitude":-73.364452
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":50.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":0,
"CanArriveEarly":true,
"Distance":2.72589328322596,
"Time":365
},
{
"MatchCode":0,
"Name":"0002",
"Delivery":"",
"Vehicle":"",
"Description":"",
"Phone":"",
"LatLong":{
"Latitude":42.170298,
"Longitude":-73.380508
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":50.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":0,
"CanArriveEarly":true,
"Distance":1.8470258689254753,
"Time":260
},
{
"MatchCode":0,
"Name":"0003",
"Delivery":"",
"Vehicle":"",
"Description":"",
"Phone":"",
"LatLong":{
"Latitude":42.180726,
"Longitude":-73.365836
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":50.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":0,
"CanArriveEarly":true,
"Distance":1.1386005726556907,
"Time":170
},
{
"MatchCode":0,
"Name":"Drop01",
"Delivery":"",
"Vehicle":"",
"Description":"",
"Phone":"",
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":0.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00Z",
"TimeConstraintDeparture":"0001-01-01T00:00:00Z",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":4,
"CanArriveEarly":true,
"Distance":0.0,
"Time":0
},
{
"MatchCode":0,
"Name":"V1",
"Delivery":"",
"Vehicle":"",
"Description":null,
"Phone":"",
"LatLong":{
"Latitude":42.190377,
"Longitude":-73.372059
},
"Address":{
"Street":"",
"City":"",
"State":"",
"PostalCode":"",
"Country":""
},
"Priority":0,
"Wait":0,
"Volume":0.0,
"Weight":0.0,
"Skids":0,
"TimeConstraintArrival":"0001-01-01T00:00:00",
"TimeConstraintDeparture":"0001-01-01T00:00:00",
"TimeConstraintArrival2":"0001-01-01T00:00:00",
"TimeConstraintDeparture2":"0001-01-01T00:00:00",
"LocationType":2,
"CanArriveEarly":true,
"Distance":0.0,
"Time":0
}
]
}
],
"Errors":[
],
"Status":1
}