Search for stops
Request
- Base URL: https://transit.land/api/v2/rest
- URL: https://transit.land/api/v2/rest/stops
- Auth: none declared
Query parameters
Stop lookup key; can be an integer ID, a '<feed onestop_id>:<gtfs stop_id>' key, or a Onestop ID
Search for records with this GTFS stop_id
Search stops visited by a route or agency OnestopID. Accepts comma separated values.
Search for stops served by a particular route (vehicle) type.
Search for stops served by particular route (vehicle) types. Accepts comma separated values.
Filter by location_type: 0=stop/platform, 1=station, 2=entrance/exit, 3=generic node, 4=boarding area
Include alerts from GTFS Realtime feeds
Include routes that serve this stop
Search for a specific internal ID
Pagination cursor value. This should be treated as an opaque value created by the server and returned as the link to the next result page, which may be empty. For historical reasons, this is based on the integer record ID values, but that should not be assumed to be the case in the future.
Maximum number of records to return
Response format
Full text search
Search for a specific Onestop ID
Search for records in this feed version
Search for records in this feed
Search radius (meters); requires lat and lon
Longitude
Latitude
Geographic search using a bounding box, with coordinates in (min_lon, min_lat, max_lon, max_lat) order as a comma separated string
Filter entities by feed license 'commercial_use_allowed' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Filter entities by feed license 'share_alike_optional' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Filter entities by feed license 'create_derived_product' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Filter entities by feed license 'redistribution_allowed' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Filter entities by feed license 'use_without_attribution' value. Please see Source Feed concept for details on license values. 'exclude_no' is equivalent to 'yes' and 'unknown'.
Response
ok
Example response
{
"stops": [
{
"alerts": [
{
"informed_entity": [
{
"trip": {
"start_date": "2019-11-15",
"start_time": "15:21:04"
}
}
]
}
],
"feed_version": {
"fetched_at": "2019-11-15T00:45:55.409906",
"sha1": "ab5bdc8b6cedd06792d42186a9b542504c5eef9a"
},
"onestop_id": "s-dr5ruvgnyk-madisonav~e69st",
"parent": {
"alerts": [
{
"informed_entity": [
{
"trip": {
"start_date": "2019-11-15",
"start_time": "15:21:04"
}
}
]
}
],
"stop_id": "400029",
"stop_name": "MADISON AV/E 68 ST"
},
"stop_desc": "NW Corner of Broadway and 14th",
"stop_id": "400029",
"stop_name": "MADISON AV/E 68 ST",
"stop_timezone": "America/Los_Angeles"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.