Menu
API (v2)
Services
- Destinations
- Locations
- Routes
- Service Advisories
- Statuses
- Stop Features
- Stop Schedules
- Stops
- Streets
- System Messages
- Trip Planner
- Variants
Other versions
Variants API
A variation of a route, identified by its destination points.
Valid URL Parameters
name | The name of the variant to search for. |
---|---|
stop | Only return variants that service the given stop number. |
stops | A comma-delimited list of stop numbers. Don't include this if stop has been specified. |
usage |
The style of names to return.
|
---|
Examples
Login to see sample results.
Identity
- variants/F5-1-F
- variants/22-0-P?usage=long
- variants/1
- variants/invalid
Filter
- variants?stop=10064
- variants?stops=10064,10065
- variants?name=osbo
- variants?stop=10064&stops=10065,10066
Wildcard
- variants:F5
- variants:F5-1
- variants:F5-1-F
- variants:osb
- variants:
Explore the API
Login to explore the Variants API.
Noteworthy Results
key | A unique identifier for this variant. |
---|---|
name | The variant name. See the usage parameter for formatting options. |
destinations | Provides an xlink:href attribute to the Destinations service for this variant. |