Route Details
The route details call returns the stops and their sequence within a route.
Each stop record includes the stop's id, description, coordinates, the stop's predecessors within the route, and data that indicates if the stop is a terminus (last) stop on the route.
The response can be filtered in three ways:
- •  Terminus stops only
- •  All stops except terminus stops
- •  Full route, including terminus and regular stops
Call format
| Part | Description | Optional | Example |
| URL | TransiCast web server instance URL | http://transicast.appspot.com/ws/V1 | |
| Servlet descriptor | termini | termini | |
| Parameter: agency=<agency name> | Agency name, as provided by the agencies call | agency=CTA | |
| Parameter: route=<route id> | Route ID, as provided by the route list call | route=28 | |
| Parameter: all=<mode> |
This parameter controls how the resulting list of stops is filtered. There are three settings: • all=false: Return terminus stops of the route only (default) • all=true: Return all stops of the route, except terminus stops • all=full: Return all stops of the route |
all=full |
http://transicast.appspot.com/ws/V1/termini?agency=CTA&route=28&all=full&appid=sample3
Response format
Individual routes are returned through the <route> tag. It contains the following attributes:
| Attribute | Description | Key | Used in | Example |
| locid | Stop ID, as provided by stops call | Stops, as key value | locid="7131" | |
| route | Route ID, as provided by the route list call. In full call mode, the presence of this attribute indicates terminus stops | Route list, as key value | route="28" | |
| color | Route color. In full call mode, the presence of this attribute indicates terminus stops | color="" | ||
| pre | Comma separated list of predecessor stops within the route, by stop ID | Stops, as key value | pre="1515" | |
| desc | Stop description | desc="Lake Park & 47th Street Terminal" | ||
| lat | Stop latitude | lat="41.78601833" | ||
| lng | Stop longitude | lng="-87.5864924" |
<>?xml version="1.0" encoding="UTF-8"?> <resultSet queryTime="1319383523699" ct="105"> <stop locid="1510" pre="5320" desc="Stony Island & 62nd Street" lat="41.78281897" lng="-87.58642851"/> <stop locid="1511" pre="1510" desc="Stony Island & 61st Street" lat="41.78387199" lng="-87.58644768"/> <stop locid="1512" pre="1511" desc="Stony Island & 60th Street" lat="41.78601833" lng="-87.5864924"/> <stop locid="1513" pre="1512" desc="Stony Island & 59th Street" lat="41.78808415" lng="-87.58653315"/> <stop locid="1514" pre="1513" desc="5800 S Stony Island" lat="41.78962" lng="-87.586575"/> <stop locid="1515" pre="1514" desc="Stony Island & 57th Drive" lat="41.79134" lng="-87.58663"/> <stop locid="7130" pre="1515" desc="Stony Island & 56th Street" lat="41.79324108" lng="-87.58653231"/> <stop locid="7131" pre="7130" desc="Lake Park & 56th Street" lat="41.79362305" lng="-87.58773925"/> <stop locid="7132" pre="7131" desc="Lake Park & 55th Street" lat="41.79503954" lng="-87.58745219"/> <stop locid="7133" pre="7132" desc="Lake Park & 54th Street" lat="41.79825739" lng="-87.58712826"/> <stop locid="7134" pre="7133" desc="Lake Park & 53rd Street" lat="41.79943053" lng="-87.58717247"/> <stop locid="5037" pre="7134" desc="Lake Park & E. Hyde Park Blvd" lat="41.802873" lng="-87.587888"/> <stop locid="7137" pre="5037" desc="5000 S Lake Park" lat="41.80444802" lng="-87.5885156"/> <stop locid="5038" pre="7137" desc="Lake Park & 49th Street" lat="41.805805" lng="-87.589125"/> <stop locid="5039" pre="5038" desc="Lake Park & 48th Street" lat="41.808023" lng="-87.5905"/> <stop locid="5040" pre="5039" desc="Lake Park & 47th Street Terminal" lat="41.809135" lng="-87.591638"/> <stop locid="15915" route="28" color="" pre="5040" desc="Lake Park & 47th Street Terminal" lat="41.80935511" lng="-87.5916452"/> <stop locid="5033" pre="15915" desc="Lake Park & 47th Street " lat="41.80883902" lng="-87.59158851"/> . . . <stop locid="17504" route="28" color="" pre="7212" desc="Olive-Harvey College" lat="41.71169329" lng="-87.59192706"/> <stop locid="17505" pre="" desc="Olive-Harvey College" lat="41.71179737" lng="-87.59202174"/> </resultSet>
Contact
By email  
| © 2011, 2012 Joachim Pfeiffer |
|
