JSON API
/v4/time-filter/fast
A high performance version of the Travel Time Matrix (Time Filter) endpoint. This endpoint offers fewer configurable parameters but can handle very large volumes of locations with extremely low response times.
Available in most of the countries currently supported by the TravelTime API - a full list can be found at the bottom of the page here.
array[object]
Define your locations to use later in arrival_searches
.
object
Searches based on arrival time. Arrive at a destination or multiple destinations at no later than given time.
array[object]
This allows you to specify a single arrival location and multiple departure locations. You can define a maximum of 10
searches.
string
Used to identify each search in the results array. Must be unique among all searches.
The id of the location to arrive at. Must reference an id from the locations array.
array[string]
The ids of the locations to depart from. Must reference ids from the locations array. You can define a maximum of 100,000
departure_location_ids.
Maximum journey time (in seconds). Maximum value is 10800
(3 hours) as standard. To discuss increasing this, please contact sales@traveltime.com.
Possible values: weekday_morning
array[string]
Properties to be returned about the points. Possible values: travel_time
, distance
(only for driving+ferry
, cycling+ferry
and walking+ferry
transportation types), fares
(UK only).
Possible values: public_transport
, walking+ferry
, cycling+ferry
, driving+ferry
, driving+public_transport
.
Note - a driving+public_transport
search is for driving then public transport (i.e driving to a stop/station and continuing by public transport). The driving leg of the journey is limited to maximum 30 minutes."
object | optional
Adjusts the process of looking up the nearest roads from the departure / arrival points.
string | optional
enabled
(default) - walking time and distance from the departure location to the nearest road and from the nearest road to the arrival location are added to the total travel time and distance of a journey.disabled
- these walking times and distances are not added to the total reported values (i.e the journey effectively starts and ends at the nearest points on the road network).
string | optional
both_drivable_and_walkable
(default) - journey can only start or end on roads that are accessible by both: cars and pedestrians. This effectively means journeys can not start / end on motorways.any_drivable
- journey can start or end on any road accessible by a car (including motorways).
array[object]
This allows you to specify a single departure location and multiple arrival locations. You can define a maximum of 10
searches.
string
Used to identify each search in the results array. Must be unique among all searches.
The id of the location to depart from. Must reference an id from the locations array.
array[string]
The ids of the locations to arrive at. Must reference ids from the locations array. You can define a maximum of 100,000
arrival_location_ids.
Maximum journey time (in seconds). Maximum value is 10800
(3 hours) as standard. To discuss increasing this, please contact sales@traveltime.com.
Possible values: weekday_morning
array[string]
Properties to be returned about the points. Possible values: travel_time
, distance
(only for driving+ferry
, cycling+ferry
and walking+ferry
transportation types), fares
(UK only).
Possible values: public_transport
, walking+ferry
, cycling+ferry
, driving+ferry
, driving+public_transport
.
Note - a driving+public_transport
search is for driving then public transport (i.e driving to a stop/station and continuing by public transport). The driving leg of the journey is limited to maximum 30 minutes."
object | optional
Adjusts the process of looking up the nearest roads from the departure / arrival points.
string | optional
enabled
(default) - walking time and distance from the departure location to the nearest road and from the nearest road to the arrival location are added to the total travel time and distance of a journey.disabled
- these walking times and distances are not added to the total reported values (i.e the journey effectively starts and ends at the nearest points on the road network).
string | optional
both_drivable_and_walkable
(default) - journey can only start or end on roads that are accessible by both: cars and pedestrians. This effectively means journeys can not start / end on motorways.any_drivable
- journey can start or end on any road accessible by a car (including motorways).
array[object]
The results array which is sorted lexicographically by the id
attribute
object
Only the properties included in the request are returned here.
integer | optional
Travel time in seconds.
object | optional
array[object]
month
or year
ISO 4217
currency code
array[string]
Ids of locations that cannot be reached within the specified travel_time
.
Example Request
Loading
Response Body
Loading