CalculateRoute

CalculateRoute returns distances and turn-by-turn directions.  In RouteOptions, you may set MapSize (width, height) to a value other 0 to get back route map and leg map along with directions. Othewise leave MapSize to 0,0 or do not use at all.

 <CalculateRoute xmlns="http://TrackService.TrackRoad.com/">
      <specification>
        <Locations>
          <Location>
            <MatchCode>None or Poor or Approx or Good or Exact</MatchCode>
            <Name>string</Name>
            <Delivery>string</Delivery>
            <Vehicle>string</Vehicle>
            <Description>string</Description>
            <Phone>string</Phone>
            <LatLong xsi:nil="true" />
            <Address xsi:nil="true" />
            <Priority>int</Priority>
            <Wait>int</Wait>
            <Volume>double</Volume>
            <Weight>double</Weight>
            <Skids>int</Skids>
            <TimeConstraintArrival>dateTime</TimeConstraintArrival>
            <TimeConstraintDeparture>dateTime</TimeConstraintDeparture>
            <TimeConstraintArrival2>dateTime</TimeConstraintArrival2>
            <TimeConstraintDeparture2>dateTime</TimeConstraintDeparture2>
            <LocationType>Midway or Start or Finish or Delivery or MidwayDrop</LocationType>
            <CanArriveEarly>boolean</CanArriveEarly>
            <Distance>double</Distance>
            <Time>int</Time>
          </Location>
          <Location>
            <MatchCode>None or Poor or Approx or Good or Exact</MatchCode>
            <Name>string</Name>
            <Delivery>string</Delivery>
            <Vehicle>string</Vehicle>
            <Description>string</Description>
            <Phone>string</Phone>
            <LatLong xsi:nil="true" />
            <Address xsi:nil="true" />
            <Priority>int</Priority>
            <Wait>int</Wait>
            <Volume>double</Volume>
            <Weight>double</Weight>
            <Skids>int</Skids>
            <TimeConstraintArrival>dateTime</TimeConstraintArrival>
            <TimeConstraintDeparture>dateTime</TimeConstraintDeparture>
            <TimeConstraintArrival2>dateTime</TimeConstraintArrival2>
            <TimeConstraintDeparture2>dateTime</TimeConstraintDeparture2>
            <LocationType>Midway or Start or Finish or Delivery or MidwayDrop</LocationType>
            <CanArriveEarly>boolean</CanArriveEarly>
            <Distance>double</Distance>
            <Time>int</Time>
          </Location>
        </Locations>
        <RouteOptions>
          <DistanceUnit>Mile or Kilometer</DistanceUnit>
          <RouteOptimize>MinimizeTime or MinimizeDistance</RouteOptimize>
          <Culture>string</Culture>
          <MapSize>
            <Width>int</Width>
            <Height>int</Height>
          </MapSize>
          <RouteColor>
            <A>unsignedByte</A>
            <R>unsignedByte</R>
            <G>unsignedByte</G>
            <B>unsignedByte</B>
          </RouteColor>
          <MapCenter>
            <Latitude>double</Latitude>
            <Longitude>double</Longitude>
          </MapCenter>
          <HideStops>boolean</HideStops>
          <ZoomLevel>int</ZoomLevel>
        </RouteOptions>
      </specification>
    </CalculateRoute>