When visualizing many stop points over a large region, consider using Transitland's vector tiles instead of the REST API.
Documentation
REST API - Stops
Stops
The REST API routes stops provides a fast and flexible way to browse stops and to visualize their representative locations.
Request overview
Geographic queries require all three parameters of lat, lon, and radius to be specified. The maximum radius is 10km.
The stop API returns "active" feed versions unless requesting a specific feed version.
Stop API results are based on this GraphQL query.
GEThttps://transit.land/api/v2/rest/stops
- GET
https://transit.land/api/v2/rest/stops.{format}Request stops in specified format - GET
https://transit.land/api/v2/rest/stops/{stop_key}Request a stop by ID or Onestop ID - GET
https://transit.land/api/v2/rest/stops/{stop_key}.{format}Request a stop by ID or Onestop ID in specified format
Request
stop_optional stringkey - Stop lookup key; can be an integer ID, a '<feed onestop_id>:<gtfs stop_id>' key, or a Onestop ID
served_optional stringby_ onestop_ ids - Search stops visited by a route or agency OnestopID. Accepts comma separated values.
served_optional stringby_ route_ types - Search for stops served by particular route (vehicle) types. Accepts comma separated values.
location_optional integertype - Filter by location_type: 0=stop/platform, 1=station, 2=entrance/exit, 3=generic node, 4=boarding area
afteroptional integer (int32)- 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.
bboxoptional string- Geographic search using a bounding box, with coordinates in (min_lon, min_lat, max_lon, max_lat) order as a comma separated string
license_optional stringcommercial_ use_ allowed - 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'.
Allowed:
yes,no,unknown,exclude_no license_optional stringcreate_ derived_ product - 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'.
Allowed:
yes,no,unknown,exclude_no
Response
stopsarray of Stop- List or search for Stops
stops.stop_nullable stringtimezone - GTFS
stops.stop_timezone; overrides agency timezone; inherits from parent station if emptyExample:
America/Los_Angeles stops.stop_nullable stringcode - GTFS
stops.stop_code; short text or number identifying the location for riders stops.zone_nullable stringid - GTFS
stops.zone_id; identifies the fare zone for a stop; required only on stops referenced byfare_rules.txt stops.platform_nullable stringcode - GTFS
stops.platform_code; platform identifier without a 'platform' prefix (e.g.Gor3) stops.tts_nullable stringstop_ name - GTFS
stops.tts_stop_name; readable version of stop_name for use with text-to-speech systems stops.stop_nullable integeraccess - GTFS
stops.stop_access[0=access only via station entrance/pathways, 1=route directly to the stop]; only valid for platforms (location_type 0) with a parent_station stops.wheelchair_nullable integerboarding - GTFS
stops.wheelchair_boarding[0=no information, 1=some accessible path exists, 2=no accessible path] stops.location_integertype - GTFS
stops.location_type[0=stop/platform, 1=station, 2=entrance/exit, 3=generic node, 4=boarding area] stops.onestop_stringid - Onestop ID for this stop, or empty string if not registered
Example:
s-dr5ruvgnyk-madisonav~e69st stops.placenullable StopPlace- Administrative place (country and state/province) associated with this stop's location