Skip to main content

TransitDepartureRoute

One line a rider can board near a point, and where it goes.

short_namestring
Example: 263A
long_namestring
Example: Darkuman to Haasto
modestring

"BUS" or another OTP2 transit mode.

destinationstring

Final stop, e.g. "Terminal Haasto".

dest_latnumber<double>
dest_lngnumber<double>
dest_distance_mnumber<double>

Straight-line distance from the query point to the destination.

stop_namestring

Where to board.

stop_latnumber<double>
stop_lngnumber<double>
stop_distance_mnumber<double>

How far to walk to board.

TransitDepartureRoute
{
"short_name": "263A",
"long_name": "Darkuman to Haasto",
"mode": "string",
"destination": "string",
"dest_lat": 0,
"dest_lng": 0,
"dest_distance_m": 0,
"stop_name": "string",
"stop_lat": 0,
"stop_lng": 0,
"stop_distance_m": 0
}