TrackService

FREE
By rdrunnerxx
Updated 9 months ago
Logistics
4.9/10
Popularity
351ms
Latency
100%
Success Rate

TrackService API Documentation

Route optimization & dispatching of multiple vehicles and multiple stops. Use TrackRoad API to optimize 100's of stops in seconds, distance calculation, turn-by-turn directions, and geocoding. Real-time asset tracking & two-way texting are provided using either web interface, free iPhone app or Android app. Routing features include intelligent dispatching, multiple region routing, time window, load capacity balancing, auto address geocoding, highlighted route maps and much more.

View API Details
POSTDispatch XML
POSTDispatch JSON
POSTGeocode XML
POSTGeocode JSON
POSTCalculate Distance XML
POSTCalculate Distance JSON
POSTCalculate Route XML
POSTCalculate Route JSON
POSTCalculate Routes XML
POSTCalculate Routes JSON
POSTCredit Remaining XML
POSTCredit Remaining JSON
POSTLogin XML
POSTLogin JSON
POSTCalculate Routes XML

Use the following URL template to get multiple routes by specifying a series of locations. A location is a specified geographical location defined by longitude and latitude that is used for navigational purposes. Every route includes information such as route instructions, travel duration, travel distance or transit information. You can also request a set of route points.

Authorization:

Key authentication.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
ContentTypeSTRING
OPTIONALTo receive response in XML format you must specify content type text/xml or application/xml.
Required Parameters
keyQUERY
REQUIREDTrackService key.
Calculate Routes XML Request Model
XML_STRING
REQUIREDThe following request uses two locations with Latitude/Longitude.
Code Snippet
Install SDK
Response Body
<RoutesResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Errors />
  <Status>None</Status>
  <Results>
    <RouteResult>
      <Errors />
      <Status>Success</Status>
      <Route>
        <Distance>18.963006044698957</Distance>
        <Time>1731</Time>
        <RouteLegs>
          <RouteLeg>
            <Distance>18.963006044698957</Distance>
            <Time>1731</Time>
            <Itinerary>
              <Items>
                <RouteItineraryItem>
                  <Distance>0.25476218881730689</Distance>
                  <LatLong>
                    <Latitude>38.9515221118927</Latitude>
                    <Longitude>-77.296746969223022</Longitude>
                  </LatLong>
                  <Text>Depart Windstone Dr toward Windy Knoll Ln</Text>
                  <Time>45</Time>
                  <Warnings>
                    <RouteWarning>
                      <Severity>None</Severity>
                      <Text>Private Road</Text>
                    </RouteWarning>
                  </Warnings>
                  <Hints />
                </RouteItineraryItem>
                <RouteItineraryItem>
                  <Distance>0.76677205122087011</Distance>
                  <LatLong>
                    <Latitude>38.955159187316895</Latitude>
                    <Longitude>-77.296929359436035</Longitude>
                  </LatLong>
                  <Text>Turn right onto VA-675 / Browns Mill Rd</Text>
                  <Time>83</Time>
                  <Warnings />
                  <Hints />
                </RouteItineraryItem>
                <RouteItineraryItem>
                  <Distance>0.75931559691402206</Distance>
                  <LatLong>
                    <Latitude>38.950572609901428</Latitude>
                    <Longitude>-77.28458046913147</Longitude>
                  </LatLong>
                  <Text>Turn left onto VA-702 / Beulah Rd</Text>
                  <Time>107</Time>
                  <Warnings />
                  <Hints />
                </RouteItineraryItem>
                ...
                <RouteItineraryItem>
                  <Distance>0</Distance>
                  <LatLong>
                    <Latitude>38.90882134437561</Latitude>
                    <Longitude>-77.064883410930634</Longitude>
                  </LatLong>
                  <Text>Arrive at Loc_2 on the left</Text>
                  <Time>0</Time>
                  <Warnings />
                  <Hints>
                    <RouteHint>
                      <Type>PreviousIntersection</Type>
                    </RouteHint>
                    <RouteHint>
                      <Type>NextIntersection</Type>
                    </RouteHint>
                  </Hints>
                </RouteItineraryItem>
              </Items>
            </Itinerary>
          </RouteLeg>
        </RouteLegs>
        <Points>
          <LatLong>
            <Latitude>38.951522</Latitude>
            <Longitude>-77.296746</Longitude>
          </LatLong>
          <LatLong>
            <Latitude>38.952852</Latitude>
            <Longitude>-77.297042</Longitude>
          </LatLong>
          <LatLong>
            <Latitude>38.953582</Latitude>
            <Longitude>-77.29695000000001</Longitude>
          </LatLong>
          ...
          <LatLong>
            <Latitude>38.908820999999975</Latitude>
            <Longitude>-77.064883</Longitude>
          </LatLong>
        </Points>
      </Route>
    </RouteResult>
    <RouteResult>
      <Errors />
      <Status>Success</Status>
      <Route>
        <Distance>11.165418953312653</Distance>
        <Time>1163</Time>
        <RouteLegs>
          <RouteLeg>
            <Distance>11.165418953312653</Distance>
            <Time>1163</Time>
            <Itinerary>
              <Items>
                <RouteItineraryItem>
                  <Distance>0.060273005647021392</Distance>
                  <LatLong>
                    <Latitude>38.936732411384583</Latitude>
                    <Longitude>-77.2865492105484</Longitude>
                  </LatLong>
                  <Text>Depart Asoleado Ln toward Lozano Dr</Text>
                  <Time>10</Time>
                  <Warnings />
                  <Hints />
                </RouteItineraryItem>
                <RouteItineraryItem>
                  <Distance>0.50579615048118975</Distance>
                  <LatLong>
                    <Latitude>38.93730103969574</Latitude>
                    <Longitude>-77.2873592376709</Longitude>
                  </LatLong>
                  <Text>Turn right onto Lozano Dr</Text>
                  <Time>93</Time>
                  <Warnings />
                  <Hints />
                </RouteItineraryItem>
                ...
                <RouteItineraryItem>
                  <Distance>0</Distance>
                  <LatLong>
                    <Latitude>38.949450775980949</Latitude>
                    <Longitude>-77.137107253074646</Longitude>
                  </LatLong>
                  <Text>Arrive at Loc_2 on the right</Text>
                  <Time>0</Time>
                  <Warnings />
                  <Hints />
                </RouteItineraryItem>
              </Items>
            </Itinerary>
          </RouteLeg>
        </RouteLegs>
        <Points>
          <LatLong>
            <Latitude>38.936732</Latitude>
            <Longitude>-77.286549</Longitude>
          </LatLong>
          <LatLong>
            <Latitude>38.936941</Latitude>
            <Longitude>-77.286961999999988</Longitude>
          </LatLong>
         ...
          <LatLong>
            <Latitude>38.94945</Latitude>
            <Longitude>-77.137106999999972</Longitude>
          </LatLong>
        </Points>
      </Route>
    </RouteResult>
  </Results>
</RoutesResult>

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication