Transit URL Scheme
If you're a developer, you can use our URL scheme to make your app launch Transit and show nearby routes or get directions for a particular location.
Get Directions | |
---|---|
description | get transit directions between 2 locations |
parameters | from: latitude-longitude pair or location string of origin to: latitude-longitude pair or location string of destination |
example | transit://directions?from=Berri-UQAM&to=8194%20Drolet |
notes | Leaving out a parameter will use the user's current location. User's current location is taken into account when geocoding address strings. Query strings are only supported in Transit 2.0+ |
Show Nearby Routes | |
---|---|
description | show nearby transit routes for a location |
parameters | q: latitude-longitude pair or location string to fetch nearby routes for |
example | transit://routes?q=45.5391,-73.5997 |
Open Transit Data Guidelines
Quality GTFS feeds not only make our job easier but also will make your riders happier. You can ensure the quality of your GTFS data by following the official GTFS Specification as well as the GTFS Best Practices.