Script Name: stops.php

Supports GET and POST. Equivalent SOAP functions will also be provided. Output formats: XML, JSON, and PHP.

Description

Return a stop list with coordinates, and linear distances for supplied route ID. Additionally provides supplied board and alight distances.

There is only one required value and that is route id. Only one route id is allowed per request.

  • Route = route id

The route id is an integer.

  • format [optional] = xml | json | php

By default output format is set to xml. JSON and PHP are native array formats.

Returns

Stops will return a list of text descriptions, linear distances, access rules and geometric coordinates in Longitude/Latitude values (decimal degrees/floating point).

Usage

# REQUIRED: apikey, stops id 
http://developer.metro.net/tm/stops.php?apikey=1-2-3-4-5&route=1
# OPTIONAL: specify format 
http://developer.metro.net/tm/stops.php?apikey=1-2-3-4-5&route=1&format=xml
http://developer.metro.net/tm/stops.php?apikey=1-2-3-4-5&route=1&format=json
http://developer.metro.net/tm/stops.php?apikey=1-2-3-4-5&route=1&format=php