map
Given a area frame (box defined by top right and bottom left corner) and a time frame, it returns all trips and their respective shapes that operate in this area + time frame. Trips are filtered by zoom level. On low zoom levels, only long distance trains will be shown while on high zoom levels, also metros, buses and trams will be returned.
get/api/v6/map/trips
Query parameters
zoomnumber required
current zoom level
minstring required
latitude,longitude pair of the lower right coordinate
maxstring required
latitude,longitude pair of the upper left coordinate
startTimestring date-time required
start of the time window
endTimestring date-time required
end if the time window
precisionnumber
precision of returned polylines. Recommended to set based on zoom: zoom >= 11 ? 5 : zoom >= 8 ? 4 : zoom >= 5 ? 3 : 2
languagestring[]
language tags as used in OpenStreetMap / GTFS (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
Response
a list of trips