|
|
@@ -15,9 +15,15 @@ module Agents
|
15
|
15
|
* stops (array)
|
16
|
16
|
* alert_window_in_minutes (integer)
|
17
|
17
|
|
18
|
|
- First, select an agency by visiting [http://www.nextbus.com/predictor/agencySelector.jsp](http://www.nextbus.com/predictor/agencySelector.jsp) and finding your transit system. Once you find it, copy the part of the URL after `?a=`. For example, for the San Francisco MUNI system, you would end up on [http://www.nextbus.com/predictor/stopSelector.jsp?a=**sf-muni**](http://www.nextbus.com/predictor/stopSelector.jsp?a=sf-muni) and copy "sf-muni". Put that into this Agent's agency setting.
|
|
18
|
+ First, select an agency by visiting [http://www.nextbus.com/predictor/adaAgency.jsp](http://www.nextbus.com/predictor/adaAgency.jsp) and finding your transit system. Once you find it, copy the part of the URL after `?a=`. For example, for the San Francisco MUNI system, you would end up on [http://www.nextbus.com/predictor/adaDirection.jsp?a=**sf-muni**](http://www.nextbus.com/predictor/adaDirection.jsp?a=sf-muni) and copy "sf-muni". Put that into this Agent's agency setting.
|
19
|
19
|
|
20
|
|
- Next, find the stop tags that you care about. To find the tags for the sf-muni system, for the N route, visit this URL:
|
|
20
|
+ Next, find the stop tags that you care about.
|
|
21
|
+
|
|
22
|
+ Select your destination and lets use the n-judah route. The link should be [http://www.nextbus.com/predictor/adaStop.jsp?a=sf-muni&r=N](http://www.nextbus.com/predictor/adaStop.jsp?a=sf-muni&r=N) Once you find it, copy the part of the URL after `r=`.
|
|
23
|
+
|
|
24
|
+ The link may not work, but we're just trying to get the part after the r=, so even if it gives an error, continue to the next step.
|
|
25
|
+
|
|
26
|
+ To find the tags for the sf-muni system, for the N route, visit this URL:
|
21
|
27
|
[http://webservices.nextbus.com/service/publicXMLFeed?command=routeConfig&a=sf-muni&r=**N**](http://webservices.nextbus.com/service/publicXMLFeed?command=routeConfig&a=sf-muni&r=N)
|
22
|
28
|
|
23
|
29
|
The tags are listed as tag="1234". Copy that number and add the route before it, separated by a pipe '|' symbol. Once you have one or more tags from that page, add them to this Agent's stop list. E.g,
|