Route Details

The route details call returns the stops of a route and and their sequence. Each stop record includes the stop's id, stop code, stop name, coordinates, the stop's predecessors within the route, and data that indicates if the stop is a terminus (last) stop on the route.
The parameter <routename> can be used to filter the result by the route longname. This is effective for agency's that maintain multiple, identical route ID's differentiated by route longname.

Call format

URLTransiCast web server instance URL
Servlet descriptorterminitermini
agency=<agency ID>
Agency ID, as provided by the agencies callagency=CTA
route=<route ID>
Route ID, as provided by the route list callroute=28
trip=<trip ID>
Trip ID, as provided by the departures call. Querying stop details by trip ID returns the sequence of stops of the trip. On patterned (skip stop) routes, expect the pattern of a trip to differ from the route pattern. The route list call indicates if a route is patterned or not.
For each stop on the route, include transfer opportunities to other routes. This includes routes of agencies other than the queried route's agency. Transfers are through stops that lie within a 350m radius from the stop on the route.
Query by route longname, as provided by the route list call
This parameter controls how the resulting list of stops is filtered. There are three settings:
  • all=false: Return terminus stops of the route only
  • all=true: Return all stops of the route, except terminus stops
  • all=full: Return all stops of the route (default)

Response format

Individual routes are returned through the <route> tag. It contains the following attributes and tags:

AttributeDescriptionKeyUsed inExample
locidStop ID, as provided by stops callStops, as key valuelocid="7131"
loccodeTraveler facing stop code. Stop codes are often printed on stop signage or included in handout schedules to make it easier for travelers to request a stop schedule or real-time arrival information for a particular stop.loccode="137227"
routeRoute ID, as provided by the route list call. In full call mode, the presence of this attribute indicates terminus stopsRoute list, as key valueroute="28"
colorRGB route color, in hexadecimal values. In full call mode, the presence of this attribute indicates terminus stopscolor="E12D27"
typeRoute type in accordance with the GTFS definitiontype="3"
descStop descriptiondesc="Lake Park & 47th Street Terminal"
latStop latitudelat="41.78601833"
lngStop longitudelng="-87.5864924"
preTag: Stop predecessor on route pattern, see below
transferTag: Transfer opportunities (if requested), see below

The predecessor stops of a stop are listed with the <pre> tag. It contains the locid attribute that identifies the processor stop.

AttributeDescriptionKeyUsed inExample
locidStop ID of the predecessor stopStops, as key valuelocid="1515"

The optional transfers are listed with the <transfer> tag. It contains the following attributes and tags:

AttributeDescriptionKeyUsed inExample
agencyidAgency ID of the transfer stopAgencies, as key valueagencyid="CTA"
locidStop ID of the transfer stopStops, as key valuelocid="15312"
loccodeStop code of the transfer stoploccode="15312"
descStop description of the transfer stopdesc="Michigan & Cermak"
latLatitude of the transfer stoplat="41.85318625"
lngLongitude of the transfer stoplng="-87.62370873"
routeTag: Transfer route, see below

Route and destination that run through the transfer stop are listed with the <route> tag. It contains the following attributes:

AttributeDescriptionKeyUsed inExample
routeidRoute ID of the transfer routeRoutes, as key valuerouteid="4"
destDestination of the transfer routedest="Illinois Center"

<?xml version="1.0" encoding="UTF-8"?>
<resultSet queryTime="1319383523699" ct="58">
<stop locid="70061" loccode="" route="Red Line" color="E12D27" type="1" desc="Alewife Station" lat="42.395428" lng="-71.142483">
	<pre locid="70064"/>
<stop locid="70063" loccode="" desc="Davis Station" lat="42.39674" lng="-71.121815">
	<pre locid="70061"/>
<stop locid="70065" loccode="" desc="Porter Square Station" lat="42.3884" lng="-71.119149">
	<pre locid="70063"/>
<stop locid="70067" loccode="" desc="Harvard Square Station" lat="42.373362" lng="-71.118956">
	<pre locid="70065"/>
<stop locid="70069" loccode="" desc="Central Square Station" lat="42.365486" lng="-71.103802">
	<pre locid="70067"/>

 . . .

<stop locid="70276" loccode="" desc="Mattapan Station" lat="42.267762" lng="-71.092241">
	<pre locid="70276"/>


By email  

© 2011 - 2019 TransiCast

Powered by Google App Engine