Dispatch using Address Only (JSON)
JSON Request

The following request uses Address for Vehicle start/finish locations and for stops.


{
   "RoutingService":0,
   "IsNeedMatchCode":true,
   "CurrentTime":"0001-01-01T00:00:00Z",
   "DispatchMode":0,
   "MinimumOptimization":4,
   "DistanceUnit":0,
   "Vehicles":[
      {
         "Name":"V1",
         "Email":null,
         "Group":null,
         "Speed":0,
         "MaxStops":0,
         "MaxWeight":0,
         "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":null,
            "Address":{
               "Street":"6718 Whittier Avenue",
               "City":"McLean",
               "State":"VA",
               "PostalCode":"22101",
               "Country":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":null,
            "Address":{
               "Street":"1309 Vincent Place",
               "City":"McLean",
               "State":"VA",
               "PostalCode":"22101",
               "Country":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":"Stop A",
         "Delivery":null,
         "Vehicle":null,
         "Description":null,
         "Phone":null,
         "LatLong":null,
         "Address":{
            "Street":"1450 Chain Bridge Road",
            "City":"McLean",
            "State":null,
            "PostalCode":"22101",
            "Country":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
      },
      {
         "MatchCode":0,
         "Name":"Stop B",
         "Delivery":null,
         "Vehicle":null,
         "Description":null,
         "Phone":null,
         "LatLong":null,
         "Address":{
            "Street":"1309 Vincent Place",
            "City":"McLean",
            "State":null,
            "PostalCode":"22101",
            "Country":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
      }
   ]
}

JSON Response

{
   "Items":[
      {
         "Vehicle":{
            "Name":"V1",
            "Email":"",
            "Group":"",
            "Speed":0,
            "MaxStops":0,
            "MaxWeight":0.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":4,
               "Name":"V1",
               "Delivery":"",
               "Vehicle":"",
               "Description":null,
               "Phone":"",
               "LatLong":{
                  "Latitude":38.931594,
                  "Longitude":-77.17602
               },
               "Address":{
                  "Street":"6718 Whittier Avenue",
                  "City":"McLean",
                  "State":"",
                  "PostalCode":"22101",
                  "Country":"US"
               },
               "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.28440159468702775,
               "Time":54
            },
            {
               "MatchCode":3,
               "Name":"Stop A",
               "Delivery":"",
               "Vehicle":"",
               "Description":"",
               "Phone":"",
               "LatLong":{
                  "Latitude":38.9321192,
                  "Longitude":-77.179751
               },
               "Address":{
                  "Street":"1450 Chain Bridge Road",
                  "City":"McLean",
                  "State":"",
                  "PostalCode":"22101",
                  "Country":null
               },
               "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":0,
               "CanArriveEarly":true,
               "Distance":0.49765618786288068,
               "Time":96
            },
            {
               "MatchCode":2,
               "Name":"Stop B",
               "Delivery":"",
               "Vehicle":"",
               "Description":"",
               "Phone":"",
               "LatLong":{
                  "Latitude":38.9369413,
                  "Longitude":-77.1791022
               },
               "Address":{
                  "Street":"1309 Vincent Place",
                  "City":"McLean",
                  "State":"",
                  "PostalCode":"22101",
                  "Country":null
               },
               "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":0,
               "CanArriveEarly":true,
               "Distance":0.22897528433945755,
               "Time":42
            },
            {
               "MatchCode":4,
               "Name":"V1",
               "Delivery":"",
               "Vehicle":"",
               "Description":null,
               "Phone":"",
               "LatLong":{
                  "Latitude":38.937025,
                  "Longitude":-77.17933
               },
               "Address":{
                  "Street":"1309 Vincent Place",
                  "City":"McLean",
                  "State":"",
                  "PostalCode":"22101",
                  "Country":"US"
               },
               "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
}