Stops on a Line

Version Number

2.0.0

Description

The Stops on a Line API returns a list of all the stops for a requested line, ordered by location name.

Request URL

base URL /v2/mode/%@/line/%@/stops-for-line?devid=%@&signature=%@

Parameters

Response

Returns a collection of JSON "stop" objects, with the attributes below, ordered by location_name:

"stop" objects have these attributes:

For more information on the data structures, check out the JSON object structure.

Example use case

Janelle's last development for the app is to help tourists understand where different trains, trams and buses go – especially bus routes which tend to be a bit less obvious. Building on the previous APIs, she uses the Stops on a Line API to do this.

supplescroll:lucid theme