Advertisement
Guest User

OneBusAway XML response sample

a guest
Feb 12th, 2015
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.02 KB | None | 0 0
  1. <response>
  2. <version>2</version>
  3. <code>200</code>
  4. <currentTime>1423788518973</currentTime>
  5. <text>OK</text>
  6. <data class="entryWithReferences">
  7. <references>
  8. <agencies>
  9. <agency>
  10. <id>1</id>
  11. <name>Metro Transit</name>
  12. <url>http://metro.kingcounty.gov</url>
  13. <timezone>America/Los_Angeles</timezone>
  14. <lang>EN</lang>
  15. <phone>206-553-3000</phone>
  16. <privateService>false</privateService>
  17. </agency>
  18. </agencies>
  19. <routes>
  20. <route>
  21. <id>1_100264</id>
  22. <shortName>70</shortName>
  23. <description>University District</description>
  24. <type>3</type>
  25. <url>http://metro.kingcounty.gov/schedules/070/n0.html</url>
  26. <agencyId>1</agencyId>
  27. </route>
  28. <route>
  29. <id>1_100265</id>
  30. <shortName>71</shortName>
  31. <description>View Ridge</description>
  32. <type>3</type>
  33. <url>http://metro.kingcounty.gov/schedules/071/n0.html</url>
  34. <agencyId>1</agencyId>
  35. </route>
  36. <route>
  37. <id>1_100266</id>
  38. <shortName>72</shortName>
  39. <description>Lake City</description>
  40. <type>3</type>
  41. <url>http://metro.kingcounty.gov/schedules/072/n0.html</url>
  42. <agencyId>1</agencyId>
  43. </route>
  44. <route>
  45. <id>1_100267</id>
  46. <shortName>73</shortName>
  47. <description>Jackson Park</description>
  48. <type>3</type>
  49. <url>http://metro.kingcounty.gov/schedules/073/n0.html</url>
  50. <agencyId>1</agencyId>
  51. </route>
  52. <route>
  53. <id>1_100278</id>
  54. <shortName>83</shortName>
  55. <description>Univ Dist/Ravenna Night Owl</description>
  56. <type>3</type>
  57. <url>http://metro.kingcounty.gov/schedules/083/n0.html</url>
  58. <agencyId>1</agencyId>
  59. </route>
  60. <route>
  61. <id>1_100447</id>
  62. <shortName>49</shortName>
  63. <description>CBD-Cap Hill-U District</description>
  64. <type>3</type>
  65. <url>http://metro.kingcounty.gov/schedules/049/n0.html</url>
  66. <agencyId>1</agencyId>
  67. </route>
  68. </routes>
  69. <stops>
  70. <stop>
  71. <id>1_9550</id>
  72. <lat>47.648945</lat>
  73. <lon>-122.323204</lon>
  74. <direction>NE</direction>
  75. <name>Eastlake Ave E & E Allison St</name>
  76. <code>9550</code>
  77. <locationType>0</locationType>
  78. <wheelchairBoarding>UNKNOWN</wheelchairBoarding>
  79. <routeIds>
  80. <string>1_100264</string>
  81. <string>1_100265</string>
  82. <string>1_100266</string>
  83. <string>1_100267</string>
  84. <string>1_100278</string>
  85. </routeIds>
  86. </stop>
  87. <stop>
  88. <id>1_9150</id>
  89. <lat>47.648613</lat>
  90. <lon>-122.323692</lon>
  91. <direction>SW</direction>
  92. <name>Eastlake Ave E & E Allison St</name>
  93. <code>9150</code>
  94. <locationType>0</locationType>
  95. <wheelchairBoarding>UNKNOWN</wheelchairBoarding>
  96. <routeIds>
  97. <string>1_100264</string>
  98. <string>1_100265</string>
  99. <string>1_100266</string>
  100. <string>1_100267</string>
  101. <string>1_100278</string>
  102. </routeIds>
  103. </stop>
  104. <stop>
  105. <id>1_10916</id>
  106. <lat>47.649704</lat>
  107. <lon>-122.322205</lon>
  108. <direction>S</direction>
  109. <name>Harvard Ave E & Eastlake Ave E</name>
  110. <code>10916</code>
  111. <locationType>0</locationType>
  112. <wheelchairBoarding>UNKNOWN</wheelchairBoarding>
  113. <routeIds>
  114. <string>1_100447</string>
  115. </routeIds>
  116. </stop>
  117. </stops>
  118. </references>
  119. <entry class="stopWithArrivalsAndDepartures">
  120. <stopId>1_9550</stopId>
  121. <arrivalsAndDepartures/>
  122. <nearbyStopIds>
  123. <string>1_9150</string>
  124. <string>1_10916</string>
  125. </nearbyStopIds>
  126. </entry>
  127. </data>
  128. </response>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement