Service Messages


The service messages call returns the current service messages for stops. Each service message record includes the message description and the IDs of the affected routes.

Call format


PartDescriptionOptionalExample
URLTransiCast web server instance URLhttp://transicast.appspot.com/ws/V1
Servlet descriptordetoursdetours
Parameter: agency=<agency name>Agency name, as provided by the agencies callagency=WMATA
Parameter:
locid=<stop id, ... >
Comma separated list of stop IDs, as provided by the stops call
+
locid=5017
Parameter:
routes=<route id, ... >
Comma separated list of Route IDs, as provided by the route list call
+
route=28

http://transicast.appspot.com/ws/V1/detours?agency=WMATA&locId=5017&routes=Yellow&appid=sample5

Response format


Individual messages are returned through the <detour> tag. It contains the following attributes:

AttributeDescriptionKeyUsed inExample
descMessage descriptiondesc="Due to a street closure, Stop ID 7751 on SW 6th at Burnside will not be served. A temporary stop is located on NW Broadway between Couch and Davis."
beginMessage begin timedesc="1309856400000"
endMessage end timedesc="1341568800000"
idMessage IDdesc="23184"
phoneticText-to-speech friendly message descriptionphonetic="Due to a street closure, Stop ID 7751 on SW 6th at Burnside will not be served. A temporary stop is located on NW Broadway between Kooch and Davis."

Each message contains <route> tags which identify the affected routes by route ID. It contains the following attributes:

AttributeDescriptionKeyUsed inExample
descRoute descriptiondesc="35-Macadam/Greeley"
routeRoute IDRoute list, as key valuedesc="35"
typeMessage type: B=Bus, R=Railtype="B"

<?xml version="1.0" encoding="UTF-8"?>
<resultSet queryTime="1319389595177" ct="4">
<detour desc="Blue Line: Trains are single tracking btwn Stadium-Armory & Addison Rd due to scheduled track maintenance. Expect delays in both directions.">
    <route desc="Blue" route="Blue"/></detour>
<detour desc="Red Line: Thru closing Sun. Oct. 23rd, buses replace trains btwn Ft. Totten and N.Y. Ave. stations. Shuttle svc is provided.">
    <route desc="Red" route="Red"/></detour>
<detour desc="Red Line: Thru closing Sun. Oct. 23rd, Rhode Island Ave & Brookland stations are closed for track maintenance. Shuttle svc is provided.">
    <route desc="Red" route="Red"/></detour>
<detour desc="Green Line: Trains are single tracking btwn Fort Totten & PG Plaza due to scheduled track maintenance. Expect delays in both directions.">
    <route desc="Green" route="Green"/></detour>
</resultSet>

Notes

Contact

By email  

© 2011, 2012 Joachim Pfeiffer

Powered by Google App Engine