The Trade Areas Trips API is a way to quickly query a year of trip origins and destinations over a small geographical area.
The Trade Areas Trips API returns the start and endpoints of a year of trips for a location specified by either a point-radius, a rectangular lat/long box, or a lat/long polygon. If you specify that the location is the Origin, the query returns all trips that began there. If you specify the Destination, the query returns all trips that ended there. The query area limit is 1 sq. mile.
The API returns rich trip metadata (start/end location, start/end time, device id, trip distance, trip mean speed) in json format. The query results are paginated, so full results are retrieved by calling the API multiple times with a limit of 10000 records returned with each page. Each query typically takes 1.5 seconds. A separate (and faster) Trips Count API returns the total trip count for the query, so total the number of records and pages can be known in advance.
Trip data will be updated quarterly, and the system will always contain 12 consecutive months of data. The default query returns the full 12 months of data, although custom time range queries are supported. All trip records are reported in UTC time.
The INRIX Trade Area Trips API requests returns metadata for all the trips matching the query:
Anonymized Device ID
Anonymized Provider ID
Start Location (latitude and longitude)
End Location (latitude and longitude)
Start Time (UTC)
End Time (UTC)
Total Trip Distance in meters
Mean Speed of the trip in kilometers per hour
Endpoint Type indicating confidence in the start/end of the trip
Description: Finds INRIX trips that start or end within the specified region.
GETGets trips that either start or end within the specified region.
A valid bearer access token provided from the GET appToken API response. The token must be added to the request header using the format 'Authorization: Bearer xxxx.xxx.xxxx'.
Determines whether to search for trips by origin or destination; only one type of search can be done at a time.
The query geometry is the origin: find trips that start inside it.
The query geometry is the destination: find trips that end inside it.
The query geometry is either the origin or destination: find trips that start or end inside it.
Determines the query geometry (either a circle, rectangular bounding box, or a polygon)
requires one point and a radius
requires two points: TOP LEFT, then BOTTOM RIGHT
requires at least three points listed COUNTER-CLOCKWISE
radius is only used with the circle geoFilterType. Specify radius as a double with a unit of: km, mi, ft, m (e.g., 0.2km, 1000ft). The minimum radius is 10m and the maximum radius (set by the 1 sq mi limit) is 0.907km).
One or more points are needed for every query. The format is lat|long and multiple points separated by commas: lat1|long1,lat2|long2,lat3|long3. Be sure to list bbox corners in TopLeft, Bottom Right order. Be sure to list polygon points counter-clockwise.
Refers to page size for pagination (there is no limit on the number of results returned either by count or by trip distance). This parameter specifies the page size. The default is 1000 trips, the minimum is 10 trips, and the maximum is 10000 trips. The fast trips-count API can be used to precalculate the total number of pages needed (and it ignores this parameter).
Limits the query to fleet or consumer trips only.
fleet includes private trucking fleets, for hire vehicles, local delivery fleets, field service vehicles, taxis
consumer includes only consumer vehicles
Enables searches for trips that begin within a specified time range. By default the API returns all trips for a full year (12 consecutive months), but this parameter provides more fine-grained control. You may use one or two comparison operations (>,>=,<,<=) and they must be url encoded. The time is in UTC and its format is yyyy-MM-ddTHH:mm
<= (less than or equal to) Example: startDateTime=%3C%3D2016-07-01T02:31
Limits the query to one value of endpointType
An endpointType of 3 indicates that INRIX observed that the device was stationary at the start and end of the trip, which is the ideal case.
An endpointType of 2 indicates that INRIX observed that the device was stationary at the end of the trip.
An endpointType of 1 indicates that INRIX observed that the device was stationary at the start of the trip.
An endpointType of 0 indicates that INRIX did not observe that the device was stationary at either the start or the end of the trip. The trip may or may not have actually ended in this location, but no more data was available to decide.
Enables searches for trips within a specified distance range in meters. By default the API returns trips with any trip distance, but this parameter provides more fine-grained control. You may use one or two comparison operations (>,>=,<,<=) and they must be url encoded.