NextBus (CyRide) XML API

Agents below are set to be cyride.

Route List

1
http://webservices.nextbus.com/service/publicXMLFeed?command=routeList&a=cyride
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<body copyright="All data copyright CyRide 2019.">
<route tag="811" title="1 Red West"/>
<route tag="812" title="1 Red East"/>
<route tag="821" title="2 Green West"/>
<route tag="822" title="2 Green East"/>
<route tag="830" title="3 Blue"/>
<route tag="850" title="5 Yellow"/>
<route tag="861" title="6 Brown South"/>
<route tag="862" title="6 Brown North"/>
<route tag="870" title="7 Purple"/>
<route tag="880" title="8 Aqua"/>
<route tag="890" title="9 Plum"/>
...
</body>

Route

1
http://webservices.nextbus.com/service/publicXMLFeed?command=routeConfig&a=cyride&r=812
1
2
3
4
5
6
7
8
9
<body copyright="All data copyright CyRide 2019.">
<route tag="812" title="1 Red East" color="da1f3d" oppositeColor="ffffff" latMin="42.0121699" latMax="42.0512799" lonMin="-93.67859" lonMax="-93.61037">
<stop tag="3333" title="Ames Middle School" lat="42.0122499" lon="-93.6715" stopId="3333"/>
<stop tag="3301" title="Mortensen Rd. at Pinon Rd." lat="42.0121699" lon="-93.6751099" stopId="3301"/>
<stop tag="3500" title="S. Dakota Ave. at Clemens Blvd." lat="42.0181199" lon="-93.67855" stopId="3500"/>
<stop tag="3510" title="S. Dakota Ave. at Todd Dr." lat="42.02145" lon="-93.67859" stopId="3510"/>
...
</route>
</body>

Prediction

1
http://webservices.nextbus.com/service/publicXMLFeed?command=predictions&a=cyride&r=812&s=3333
1
2
3
4
5
6
7
8
9
10
11
<body copyright="All data copyright CyRide 2019.">
<predictions agencyTitle="CyRide" routeTitle="1 Red East" routeTag="812" stopTitle="Ames Middle School" stopTag="3333">
<direction title="Mall via Hospital">
<prediction epochTime="1565730600000" seconds="452" minutes="7" isDeparture="true" affectedByLayover="true" dirTag="812_0_var0" vehicle="1137" block="2003" tripTag="21058"/>
<prediction epochTime="1565731800000" seconds="1652" minutes="27" isDeparture="true" affectedByLayover="true" dirTag="812_0_var0" vehicle="504" block="2002" tripTag="21060"/>
<prediction epochTime="1565733000000" seconds="2852" minutes="47" isDeparture="true" affectedByLayover="true" dirTag="812_0_var0" vehicle="126" block="2004" tripTag="21062"/>
<prediction epochTime="1565734200000" seconds="4052" minutes="67" isDeparture="true" affectedByLayover="true" dirTag="812_0_var0" vehicle="1136" block="2001" tripTag="21064"/>
<prediction epochTime="1565735400000" seconds="5252" minutes="87" isDeparture="true" affectedByLayover="true" dirTag="812_0_var0" vehicle="1137" block="2003" tripTag="21066"/>
</direction>
</predictions>
</body>