Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example XML #1

Open
djsuszi opened this issue Nov 8, 2017 · 1 comment
Open

Example XML #1

djsuszi opened this issue Nov 8, 2017 · 1 comment

Comments

@djsuszi
Copy link

djsuszi commented Nov 8, 2017

Can you commit example XML which you get from nextbus service? Service is using geolocation, and I can't check it to compare with your code.

@mmichon
Copy link
Owner

mmichon commented Apr 4, 2018

Hey there. Sorry for the late reply, but here's an example for a particular stop on San Francisco's Muni:

$ curl 'http://webservices.nextbus.com/service/publicXMLFeed?command=predictions&a=sf-muni&r=KT&s=7355'
<?xml version="1.0" encoding="utf-8" ?>
<body copyright="All data copyright San Francisco Muni 2018.">
<predictions agencyTitle="San Francisco Muni" routeTitle="KT-Ingleside/Third Street" routeTag="KT" stopTitle="3rd St &amp; 20th St" stopTag="7355">
  <direction title="Outbound to Balboa Park Station">
  <prediction epochTime="1522812528685" seconds="122" minutes="2" isDeparture="false" dirTag="KT___O_F00" vehicle="1495" block="KTUNSCHED" tripTag="KT___O_F00wkdOutbound" />
  <prediction epochTime="1522813276503" seconds="870" minutes="14" isDeparture="false" dirTag="KT___O_F00" vehicle="1431" block="9404" tripTag="8071377" />
  <prediction epochTime="1522815474224" seconds="3068" minutes="51" isDeparture="false" affectedByLayover="true" dirTag="KT___O_F00" vehicle="1413" block="9402" tripTag="8071378" />
  <prediction epochTime="1522815690489" seconds="3284" minutes="54" isDeparture="false" affectedByLayover="true" dirTag="KT___O_F00" vehicle="1529" block="9408" tripTag="8071375" />
  <prediction epochTime="1522815924108" seconds="3518" minutes="58" isDeparture="false" affectedByLayover="true" delayed="true" slowness="0.186" dirTag="KT___O_F00" vehicle="1443" block="9421" tripTag="8071376" />
  </direction>
<message text="This Friday subway service between WP &amp; Castro will end at 9pm and at 11pm this Saturday. sfmta.com/ twinpeaks" priority="Low"/>
<message text="No Elevator at&#10;Civic Center Sta." priority="Normal"/>
<message text="No Elevator at&#10;Castro Station" priority="Normal"/>
<message text="See something, Say something. Report unusual activity or objects." priority="Low"/>
</predictions>
</body>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants