TrackService

FREE
By rdrunnerxx
Updated 10 months ago
Logistics
-/10
Popularity
-
Latency
-
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 Route XML

Use the following URL template to get a route by specifying a series of locations. A location is a specified geographical location defined by longitude and latitude that is used for navigational purposes. The 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 Route XML Request Model
XML_STRING
REQUIREDThe following request uses two locations with Latitude/Longitude.
Code Snippet
Install SDK
Response Body
<RouteResult xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Errors />
  <Status>Success</Status>
  <Route>
    <Distance>8.1965073968026712</Distance>
    <Time>899</Time>
    <RouteLegs>
      <RouteLeg>
        <Distance>8.1965073968026712</Distance>
        <Time>899</Time>
        <Itinerary>
          <Items>
            <RouteItineraryItem>
              <Distance>0.14229400302234946</Distance>
              <LatLong>
                <Latitude>38.931657671928406</Latitude>
                <Longitude>-77.275997400283813</Longitude>
              </LatLong>
              <Text>Depart Thistle Ridge Ln toward Meadowlark Rd</Text>
              <Time>24</Time>
              <Warnings />
              <Hints />
            </RouteItineraryItem>
            <RouteItineraryItem>
              <Distance>0.37903642726477371</Distance>
              <LatLong>
                <Latitude>38.931759595870972</Latitude>
                <Longitude>-77.278288006782532</Longitude>
              </LatLong>
              <Text>Turn left onto Brookside Ln</Text>
              <Time>86</Time>
              <Warnings />
              <Hints />
            </RouteItineraryItem>
            ...
            <RouteItineraryItem>
              <Distance>0</Distance>
              <LatLong>
                <Latitude>38.938524127006531</Latitude>
                <Longitude>-77.164726629853249</Longitude>
              </LatLong>
              <Text>Arrive at Loc_2 on the right</Text>
              <Time>0</Time>
              <Warnings />
              <Hints>
                <RouteHint>
                  <Type>PreviousIntersection</Type>
                </RouteHint>
              </Hints>
            </RouteItineraryItem>
          </Items>
        </Itinerary>
      </RouteLeg>
    </RouteLegs>
    <Points>
      <LatLong>
        <Latitude>38.931657</Latitude>
        <Longitude>-77.275997</Longitude>
      </LatLong>
      <LatLong>
        <Latitude>38.931941</Latitude>
        <Longitude>-77.276270000000011</Longitude>
      </LatLong>
      <LatLong>
        <Latitude>38.932151000000005</Latitude>
        <Longitude>-77.276877000000013</Longitude>
      </LatLong>
    ...
      <LatLong>
        <Latitude>38.938524000000008</Latitude>
        <Longitude>-77.164725999999973</Longitude>
      </LatLong>
    </Points>
  </Route>
</RouteResult>

Install SDK for (Node.js)Unirest

OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication