onebusaway-sdk 0.1.0.pre.alpha.203

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +124 -0
  3. data/lib/onebusaway-sdk/base_client.rb +483 -0
  4. data/lib/onebusaway-sdk/base_model.rb +1188 -0
  5. data/lib/onebusaway-sdk/base_page.rb +40 -0
  6. data/lib/onebusaway-sdk/client.rb +181 -0
  7. data/lib/onebusaway-sdk/errors.rb +187 -0
  8. data/lib/onebusaway-sdk/extern.rb +10 -0
  9. data/lib/onebusaway-sdk/models/agencies_with_coverage_list_params.rb +18 -0
  10. data/lib/onebusaway-sdk/models/agencies_with_coverage_list_response.rb +84 -0
  11. data/lib/onebusaway-sdk/models/agency_retrieve_params.rb +18 -0
  12. data/lib/onebusaway-sdk/models/agency_retrieve_response.rb +151 -0
  13. data/lib/onebusaway-sdk/models/arrival_and_departure_list_params.rb +51 -0
  14. data/lib/onebusaway-sdk/models/arrival_and_departure_list_response.rb +767 -0
  15. data/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rb +60 -0
  16. data/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rb +751 -0
  17. data/lib/onebusaway-sdk/models/block_retrieve_params.rb +18 -0
  18. data/lib/onebusaway-sdk/models/block_retrieve_response.rb +205 -0
  19. data/lib/onebusaway-sdk/models/config_retrieve_params.rb +18 -0
  20. data/lib/onebusaway-sdk/models/config_retrieve_response.rb +331 -0
  21. data/lib/onebusaway-sdk/models/current_time_retrieve_params.rb +18 -0
  22. data/lib/onebusaway-sdk/models/current_time_retrieve_response.rb +67 -0
  23. data/lib/onebusaway-sdk/models/references.rb +1071 -0
  24. data/lib/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rb +117 -0
  25. data/lib/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rb +180 -0
  26. data/lib/onebusaway-sdk/models/response_wrapper.rb +37 -0
  27. data/lib/onebusaway-sdk/models/route_ids_for_agency_list_params.rb +18 -0
  28. data/lib/onebusaway-sdk/models/route_ids_for_agency_list_response.rb +45 -0
  29. data/lib/onebusaway-sdk/models/route_retrieve_params.rb +18 -0
  30. data/lib/onebusaway-sdk/models/route_retrieve_response.rb +149 -0
  31. data/lib/onebusaway-sdk/models/routes_for_agency_list_params.rb +18 -0
  32. data/lib/onebusaway-sdk/models/routes_for_agency_list_response.rb +156 -0
  33. data/lib/onebusaway-sdk/models/routes_for_location_list_params.rb +70 -0
  34. data/lib/onebusaway-sdk/models/routes_for_location_list_response.rb +162 -0
  35. data/lib/onebusaway-sdk/models/schedule_for_route_retrieve_params.rb +30 -0
  36. data/lib/onebusaway-sdk/models/schedule_for_route_retrieve_response.rb +453 -0
  37. data/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rb +30 -0
  38. data/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rb +244 -0
  39. data/lib/onebusaway-sdk/models/search_for_route_list_params.rb +36 -0
  40. data/lib/onebusaway-sdk/models/search_for_route_list_response.rb +166 -0
  41. data/lib/onebusaway-sdk/models/search_for_stop_list_params.rb +36 -0
  42. data/lib/onebusaway-sdk/models/search_for_stop_list_response.rb +161 -0
  43. data/lib/onebusaway-sdk/models/shape_retrieve_params.rb +18 -0
  44. data/lib/onebusaway-sdk/models/shape_retrieve_response.rb +70 -0
  45. data/lib/onebusaway-sdk/models/stop_ids_for_agency_list_params.rb +18 -0
  46. data/lib/onebusaway-sdk/models/stop_ids_for_agency_list_response.rb +45 -0
  47. data/lib/onebusaway-sdk/models/stop_retrieve_params.rb +18 -0
  48. data/lib/onebusaway-sdk/models/stop_retrieve_response.rb +144 -0
  49. data/lib/onebusaway-sdk/models/stops_for_agency_list_params.rb +18 -0
  50. data/lib/onebusaway-sdk/models/stops_for_agency_list_response.rb +146 -0
  51. data/lib/onebusaway-sdk/models/stops_for_location_list_params.rb +74 -0
  52. data/lib/onebusaway-sdk/models/stops_for_location_list_response.rb +161 -0
  53. data/lib/onebusaway-sdk/models/stops_for_route_list_params.rb +40 -0
  54. data/lib/onebusaway-sdk/models/stops_for_route_list_response.rb +253 -0
  55. data/lib/onebusaway-sdk/models/trip_detail_retrieve_params.rb +86 -0
  56. data/lib/onebusaway-sdk/models/trip_detail_retrieve_response.rb +561 -0
  57. data/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rb +65 -0
  58. data/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rb +561 -0
  59. data/lib/onebusaway-sdk/models/trip_retrieve_params.rb +18 -0
  60. data/lib/onebusaway-sdk/models/trip_retrieve_response.rb +160 -0
  61. data/lib/onebusaway-sdk/models/trips_for_location_list_params.rb +93 -0
  62. data/lib/onebusaway-sdk/models/trips_for_location_list_response.rb +572 -0
  63. data/lib/onebusaway-sdk/models/trips_for_route_list_params.rb +52 -0
  64. data/lib/onebusaway-sdk/models/trips_for_route_list_response.rb +559 -0
  65. data/lib/onebusaway-sdk/models/vehicles_for_agency_list_params.rb +29 -0
  66. data/lib/onebusaway-sdk/models/vehicles_for_agency_list_response.rb +529 -0
  67. data/lib/onebusaway-sdk/pooled_net_requester.rb +170 -0
  68. data/lib/onebusaway-sdk/request_options.rb +115 -0
  69. data/lib/onebusaway-sdk/resources/agencies_with_coverage.rb +31 -0
  70. data/lib/onebusaway-sdk/resources/agency.rb +32 -0
  71. data/lib/onebusaway-sdk/resources/arrival_and_departure.rb +71 -0
  72. data/lib/onebusaway-sdk/resources/block.rb +32 -0
  73. data/lib/onebusaway-sdk/resources/config.rb +30 -0
  74. data/lib/onebusaway-sdk/resources/current_time.rb +30 -0
  75. data/lib/onebusaway-sdk/resources/report_problem_with_stop.rb +44 -0
  76. data/lib/onebusaway-sdk/resources/report_problem_with_trip.rb +54 -0
  77. data/lib/onebusaway-sdk/resources/route.rb +32 -0
  78. data/lib/onebusaway-sdk/resources/route_ids_for_agency.rb +32 -0
  79. data/lib/onebusaway-sdk/resources/routes_for_agency.rb +32 -0
  80. data/lib/onebusaway-sdk/resources/routes_for_location.rb +44 -0
  81. data/lib/onebusaway-sdk/resources/schedule_for_route.rb +37 -0
  82. data/lib/onebusaway-sdk/resources/schedule_for_stop.rb +37 -0
  83. data/lib/onebusaway-sdk/resources/search_for_route.rb +36 -0
  84. data/lib/onebusaway-sdk/resources/search_for_stop.rb +36 -0
  85. data/lib/onebusaway-sdk/resources/shape.rb +32 -0
  86. data/lib/onebusaway-sdk/resources/stop.rb +32 -0
  87. data/lib/onebusaway-sdk/resources/stop_ids_for_agency.rb +32 -0
  88. data/lib/onebusaway-sdk/resources/stops_for_agency.rb +32 -0
  89. data/lib/onebusaway-sdk/resources/stops_for_location.rb +44 -0
  90. data/lib/onebusaway-sdk/resources/stops_for_route.rb +38 -0
  91. data/lib/onebusaway-sdk/resources/trip.rb +32 -0
  92. data/lib/onebusaway-sdk/resources/trip_details.rb +47 -0
  93. data/lib/onebusaway-sdk/resources/trip_for_vehicle.rb +45 -0
  94. data/lib/onebusaway-sdk/resources/trips_for_location.rb +48 -0
  95. data/lib/onebusaway-sdk/resources/trips_for_route.rb +41 -0
  96. data/lib/onebusaway-sdk/resources/vehicles_for_agency.rb +36 -0
  97. data/lib/onebusaway-sdk/util.rb +512 -0
  98. data/lib/onebusaway-sdk/version.rb +5 -0
  99. data/lib/onebusaway-sdk.rb +116 -0
  100. data/manifest.yaml +13 -0
  101. data/rbi/lib/onebusaway-sdk/base_client.rbi +162 -0
  102. data/rbi/lib/onebusaway-sdk/base_model.rbi +478 -0
  103. data/rbi/lib/onebusaway-sdk/base_page.rbi +39 -0
  104. data/rbi/lib/onebusaway-sdk/client.rbi +154 -0
  105. data/rbi/lib/onebusaway-sdk/errors.rbi +145 -0
  106. data/rbi/lib/onebusaway-sdk/extern.rbi +7 -0
  107. data/rbi/lib/onebusaway-sdk/models/agencies_with_coverage_list_params.rbi +18 -0
  108. data/rbi/lib/onebusaway-sdk/models/agencies_with_coverage_list_response.rbi +131 -0
  109. data/rbi/lib/onebusaway-sdk/models/agency_retrieve_params.rbi +18 -0
  110. data/rbi/lib/onebusaway-sdk/models/agency_retrieve_response.rbi +210 -0
  111. data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_list_params.rbi +60 -0
  112. data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_list_response.rbi +914 -0
  113. data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rbi +87 -0
  114. data/rbi/lib/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rbi +857 -0
  115. data/rbi/lib/onebusaway-sdk/models/block_retrieve_params.rbi +18 -0
  116. data/rbi/lib/onebusaway-sdk/models/block_retrieve_response.rbi +383 -0
  117. data/rbi/lib/onebusaway-sdk/models/config_retrieve_params.rbi +18 -0
  118. data/rbi/lib/onebusaway-sdk/models/config_retrieve_response.rbi +389 -0
  119. data/rbi/lib/onebusaway-sdk/models/current_time_retrieve_params.rbi +18 -0
  120. data/rbi/lib/onebusaway-sdk/models/current_time_retrieve_response.rbi +95 -0
  121. data/rbi/lib/onebusaway-sdk/models/references.rbi +1265 -0
  122. data/rbi/lib/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rbi +101 -0
  123. data/rbi/lib/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rbi +157 -0
  124. data/rbi/lib/onebusaway-sdk/models/response_wrapper.rbi +47 -0
  125. data/rbi/lib/onebusaway-sdk/models/route_ids_for_agency_list_params.rbi +18 -0
  126. data/rbi/lib/onebusaway-sdk/models/route_ids_for_agency_list_response.rbi +68 -0
  127. data/rbi/lib/onebusaway-sdk/models/route_retrieve_params.rbi +18 -0
  128. data/rbi/lib/onebusaway-sdk/models/route_retrieve_response.rbi +200 -0
  129. data/rbi/lib/onebusaway-sdk/models/routes_for_agency_list_params.rbi +18 -0
  130. data/rbi/lib/onebusaway-sdk/models/routes_for_agency_list_response.rbi +210 -0
  131. data/rbi/lib/onebusaway-sdk/models/routes_for_location_list_params.rbi +90 -0
  132. data/rbi/lib/onebusaway-sdk/models/routes_for_location_list_response.rbi +220 -0
  133. data/rbi/lib/onebusaway-sdk/models/schedule_for_route_retrieve_params.rbi +34 -0
  134. data/rbi/lib/onebusaway-sdk/models/schedule_for_route_retrieve_response.rbi +675 -0
  135. data/rbi/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rbi +34 -0
  136. data/rbi/lib/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rbi +457 -0
  137. data/rbi/lib/onebusaway-sdk/models/search_for_route_list_params.rbi +43 -0
  138. data/rbi/lib/onebusaway-sdk/models/search_for_route_list_response.rbi +220 -0
  139. data/rbi/lib/onebusaway-sdk/models/search_for_stop_list_params.rbi +43 -0
  140. data/rbi/lib/onebusaway-sdk/models/search_for_stop_list_response.rbi +231 -0
  141. data/rbi/lib/onebusaway-sdk/models/shape_retrieve_params.rbi +18 -0
  142. data/rbi/lib/onebusaway-sdk/models/shape_retrieve_response.rbi +103 -0
  143. data/rbi/lib/onebusaway-sdk/models/stop_ids_for_agency_list_params.rbi +18 -0
  144. data/rbi/lib/onebusaway-sdk/models/stop_ids_for_agency_list_response.rbi +68 -0
  145. data/rbi/lib/onebusaway-sdk/models/stop_retrieve_params.rbi +18 -0
  146. data/rbi/lib/onebusaway-sdk/models/stop_retrieve_response.rbi +211 -0
  147. data/rbi/lib/onebusaway-sdk/models/stops_for_agency_list_params.rbi +18 -0
  148. data/rbi/lib/onebusaway-sdk/models/stops_for_agency_list_response.rbi +210 -0
  149. data/rbi/lib/onebusaway-sdk/models/stops_for_location_list_params.rbi +90 -0
  150. data/rbi/lib/onebusaway-sdk/models/stops_for_location_list_response.rbi +231 -0
  151. data/rbi/lib/onebusaway-sdk/models/stops_for_route_list_params.rbi +48 -0
  152. data/rbi/lib/onebusaway-sdk/models/stops_for_route_list_response.rbi +307 -0
  153. data/rbi/lib/onebusaway-sdk/models/trip_detail_retrieve_params.rbi +87 -0
  154. data/rbi/lib/onebusaway-sdk/models/trip_detail_retrieve_response.rbi +702 -0
  155. data/rbi/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rbi +76 -0
  156. data/rbi/lib/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rbi +704 -0
  157. data/rbi/lib/onebusaway-sdk/models/trip_retrieve_params.rbi +18 -0
  158. data/rbi/lib/onebusaway-sdk/models/trip_retrieve_response.rbi +211 -0
  159. data/rbi/lib/onebusaway-sdk/models/trips_for_location_list_params.rbi +109 -0
  160. data/rbi/lib/onebusaway-sdk/models/trips_for_location_list_response.rbi +715 -0
  161. data/rbi/lib/onebusaway-sdk/models/trips_for_route_list_params.rbi +60 -0
  162. data/rbi/lib/onebusaway-sdk/models/trips_for_route_list_response.rbi +705 -0
  163. data/rbi/lib/onebusaway-sdk/models/vehicles_for_agency_list_params.rbi +35 -0
  164. data/rbi/lib/onebusaway-sdk/models/vehicles_for_agency_list_response.rbi +633 -0
  165. data/rbi/lib/onebusaway-sdk/pooled_net_requester.rbi +36 -0
  166. data/rbi/lib/onebusaway-sdk/request_options.rbi +84 -0
  167. data/rbi/lib/onebusaway-sdk/resources/agencies_with_coverage.rbi +18 -0
  168. data/rbi/lib/onebusaway-sdk/resources/agency.rbi +21 -0
  169. data/rbi/lib/onebusaway-sdk/resources/arrival_and_departure.rbi +47 -0
  170. data/rbi/lib/onebusaway-sdk/resources/block.rbi +21 -0
  171. data/rbi/lib/onebusaway-sdk/resources/config.rbi +18 -0
  172. data/rbi/lib/onebusaway-sdk/resources/current_time.rbi +18 -0
  173. data/rbi/lib/onebusaway-sdk/resources/report_problem_with_stop.rbi +34 -0
  174. data/rbi/lib/onebusaway-sdk/resources/report_problem_with_trip.rbi +44 -0
  175. data/rbi/lib/onebusaway-sdk/resources/route.rbi +21 -0
  176. data/rbi/lib/onebusaway-sdk/resources/route_ids_for_agency.rbi +21 -0
  177. data/rbi/lib/onebusaway-sdk/resources/routes_for_agency.rbi +21 -0
  178. data/rbi/lib/onebusaway-sdk/resources/routes_for_location.rbi +26 -0
  179. data/rbi/lib/onebusaway-sdk/resources/schedule_for_route.rbi +22 -0
  180. data/rbi/lib/onebusaway-sdk/resources/schedule_for_stop.rbi +22 -0
  181. data/rbi/lib/onebusaway-sdk/resources/search_for_route.rbi +22 -0
  182. data/rbi/lib/onebusaway-sdk/resources/search_for_stop.rbi +22 -0
  183. data/rbi/lib/onebusaway-sdk/resources/shape.rbi +21 -0
  184. data/rbi/lib/onebusaway-sdk/resources/stop.rbi +21 -0
  185. data/rbi/lib/onebusaway-sdk/resources/stop_ids_for_agency.rbi +21 -0
  186. data/rbi/lib/onebusaway-sdk/resources/stops_for_agency.rbi +21 -0
  187. data/rbi/lib/onebusaway-sdk/resources/stops_for_location.rbi +26 -0
  188. data/rbi/lib/onebusaway-sdk/resources/stops_for_route.rbi +23 -0
  189. data/rbi/lib/onebusaway-sdk/resources/trip.rbi +21 -0
  190. data/rbi/lib/onebusaway-sdk/resources/trip_details.rbi +34 -0
  191. data/rbi/lib/onebusaway-sdk/resources/trip_for_vehicle.rbi +32 -0
  192. data/rbi/lib/onebusaway-sdk/resources/trips_for_location.rbi +36 -0
  193. data/rbi/lib/onebusaway-sdk/resources/trips_for_route.rbi +24 -0
  194. data/rbi/lib/onebusaway-sdk/resources/vehicles_for_agency.rbi +22 -0
  195. data/rbi/lib/onebusaway-sdk/util.rbi +136 -0
  196. data/rbi/lib/onebusaway-sdk/version.rbi +5 -0
  197. data/sig/onebusaway-sdk/base_client.rbs +101 -0
  198. data/sig/onebusaway-sdk/base_model.rbs +244 -0
  199. data/sig/onebusaway-sdk/base_page.rbs +20 -0
  200. data/sig/onebusaway-sdk/client.rbs +80 -0
  201. data/sig/onebusaway-sdk/errors.rbs +98 -0
  202. data/sig/onebusaway-sdk/extern.rbs +4 -0
  203. data/sig/onebusaway-sdk/models/agencies_with_coverage_list_params.rbs +20 -0
  204. data/sig/onebusaway-sdk/models/agencies_with_coverage_list_response.rbs +85 -0
  205. data/sig/onebusaway-sdk/models/agency_retrieve_params.rbs +19 -0
  206. data/sig/onebusaway-sdk/models/agency_retrieve_response.rbs +115 -0
  207. data/sig/onebusaway-sdk/models/arrival_and_departure_list_params.rbs +38 -0
  208. data/sig/onebusaway-sdk/models/arrival_and_departure_list_response.rbs +447 -0
  209. data/sig/onebusaway-sdk/models/arrival_and_departure_retrieve_params.rbs +50 -0
  210. data/sig/onebusaway-sdk/models/arrival_and_departure_retrieve_response.rbs +427 -0
  211. data/sig/onebusaway-sdk/models/block_retrieve_params.rbs +19 -0
  212. data/sig/onebusaway-sdk/models/block_retrieve_response.rbs +201 -0
  213. data/sig/onebusaway-sdk/models/config_retrieve_params.rbs +19 -0
  214. data/sig/onebusaway-sdk/models/config_retrieve_response.rbs +227 -0
  215. data/sig/onebusaway-sdk/models/current_time_retrieve_params.rbs +19 -0
  216. data/sig/onebusaway-sdk/models/current_time_retrieve_response.rbs +64 -0
  217. data/sig/onebusaway-sdk/models/references.rbs +732 -0
  218. data/sig/onebusaway-sdk/models/report_problem_with_stop_retrieve_params.rbs +73 -0
  219. data/sig/onebusaway-sdk/models/report_problem_with_trip_retrieve_params.rbs +105 -0
  220. data/sig/onebusaway-sdk/models/response_wrapper.rbs +30 -0
  221. data/sig/onebusaway-sdk/models/route_ids_for_agency_list_params.rbs +20 -0
  222. data/sig/onebusaway-sdk/models/route_ids_for_agency_list_response.rbs +49 -0
  223. data/sig/onebusaway-sdk/models/route_retrieve_params.rbs +19 -0
  224. data/sig/onebusaway-sdk/models/route_retrieve_response.rbs +113 -0
  225. data/sig/onebusaway-sdk/models/routes_for_agency_list_params.rbs +20 -0
  226. data/sig/onebusaway-sdk/models/routes_for_agency_list_response.rbs +117 -0
  227. data/sig/onebusaway-sdk/models/routes_for_location_list_params.rbs +56 -0
  228. data/sig/onebusaway-sdk/models/routes_for_location_list_response.rbs +123 -0
  229. data/sig/onebusaway-sdk/models/schedule_for_route_retrieve_params.rbs +24 -0
  230. data/sig/onebusaway-sdk/models/schedule_for_route_retrieve_response.rbs +341 -0
  231. data/sig/onebusaway-sdk/models/schedule_for_stop_retrieve_params.rbs +24 -0
  232. data/sig/onebusaway-sdk/models/schedule_for_stop_retrieve_response.rbs +215 -0
  233. data/sig/onebusaway-sdk/models/search_for_route_list_params.rbs +30 -0
  234. data/sig/onebusaway-sdk/models/search_for_route_list_response.rbs +125 -0
  235. data/sig/onebusaway-sdk/models/search_for_stop_list_params.rbs +30 -0
  236. data/sig/onebusaway-sdk/models/search_for_stop_list_response.rbs +123 -0
  237. data/sig/onebusaway-sdk/models/shape_retrieve_params.rbs +19 -0
  238. data/sig/onebusaway-sdk/models/shape_retrieve_response.rbs +64 -0
  239. data/sig/onebusaway-sdk/models/stop_ids_for_agency_list_params.rbs +20 -0
  240. data/sig/onebusaway-sdk/models/stop_ids_for_agency_list_response.rbs +49 -0
  241. data/sig/onebusaway-sdk/models/stop_retrieve_params.rbs +19 -0
  242. data/sig/onebusaway-sdk/models/stop_retrieve_response.rbs +111 -0
  243. data/sig/onebusaway-sdk/models/stops_for_agency_list_params.rbs +19 -0
  244. data/sig/onebusaway-sdk/models/stops_for_agency_list_response.rbs +105 -0
  245. data/sig/onebusaway-sdk/models/stops_for_location_list_params.rbs +56 -0
  246. data/sig/onebusaway-sdk/models/stops_for_location_list_response.rbs +123 -0
  247. data/sig/onebusaway-sdk/models/stops_for_route_list_params.rbs +33 -0
  248. data/sig/onebusaway-sdk/models/stops_for_route_list_response.rbs +206 -0
  249. data/sig/onebusaway-sdk/models/trip_detail_retrieve_params.rbs +54 -0
  250. data/sig/onebusaway-sdk/models/trip_detail_retrieve_response.rbs +375 -0
  251. data/sig/onebusaway-sdk/models/trip_for_vehicle_retrieve_params.rbs +48 -0
  252. data/sig/onebusaway-sdk/models/trip_for_vehicle_retrieve_response.rbs +377 -0
  253. data/sig/onebusaway-sdk/models/trip_retrieve_params.rbs +19 -0
  254. data/sig/onebusaway-sdk/models/trip_retrieve_response.rbs +119 -0
  255. data/sig/onebusaway-sdk/models/trips_for_location_list_params.rbs +58 -0
  256. data/sig/onebusaway-sdk/models/trips_for_location_list_response.rbs +379 -0
  257. data/sig/onebusaway-sdk/models/trips_for_route_list_params.rbs +38 -0
  258. data/sig/onebusaway-sdk/models/trips_for_route_list_response.rbs +371 -0
  259. data/sig/onebusaway-sdk/models/vehicles_for_agency_list_params.rbs +24 -0
  260. data/sig/onebusaway-sdk/models/vehicles_for_agency_list_response.rbs +332 -0
  261. data/sig/onebusaway-sdk/pooled_net_requester.rbs +28 -0
  262. data/sig/onebusaway-sdk/request_options.rbs +42 -0
  263. data/sig/onebusaway-sdk/resources/agencies_with_coverage.rbs +16 -0
  264. data/sig/onebusaway-sdk/resources/agency.rbs +18 -0
  265. data/sig/onebusaway-sdk/resources/arrival_and_departure.rbs +37 -0
  266. data/sig/onebusaway-sdk/resources/block.rbs +18 -0
  267. data/sig/onebusaway-sdk/resources/config.rbs +16 -0
  268. data/sig/onebusaway-sdk/resources/current_time.rbs +16 -0
  269. data/sig/onebusaway-sdk/resources/report_problem_with_stop.rbs +23 -0
  270. data/sig/onebusaway-sdk/resources/report_problem_with_trip.rbs +28 -0
  271. data/sig/onebusaway-sdk/resources/route.rbs +18 -0
  272. data/sig/onebusaway-sdk/resources/route_ids_for_agency.rbs +18 -0
  273. data/sig/onebusaway-sdk/resources/routes_for_agency.rbs +18 -0
  274. data/sig/onebusaway-sdk/resources/routes_for_location.rbs +22 -0
  275. data/sig/onebusaway-sdk/resources/schedule_for_route.rbs +19 -0
  276. data/sig/onebusaway-sdk/resources/schedule_for_stop.rbs +19 -0
  277. data/sig/onebusaway-sdk/resources/search_for_route.rbs +18 -0
  278. data/sig/onebusaway-sdk/resources/search_for_stop.rbs +18 -0
  279. data/sig/onebusaway-sdk/resources/shape.rbs +18 -0
  280. data/sig/onebusaway-sdk/resources/stop.rbs +18 -0
  281. data/sig/onebusaway-sdk/resources/stop_ids_for_agency.rbs +18 -0
  282. data/sig/onebusaway-sdk/resources/stops_for_agency.rbs +18 -0
  283. data/sig/onebusaway-sdk/resources/stops_for_location.rbs +22 -0
  284. data/sig/onebusaway-sdk/resources/stops_for_route.rbs +20 -0
  285. data/sig/onebusaway-sdk/resources/trip.rbs +18 -0
  286. data/sig/onebusaway-sdk/resources/trip_details.rbs +23 -0
  287. data/sig/onebusaway-sdk/resources/trip_for_vehicle.rbs +22 -0
  288. data/sig/onebusaway-sdk/resources/trips_for_location.rbs +23 -0
  289. data/sig/onebusaway-sdk/resources/trips_for_route.rbs +21 -0
  290. data/sig/onebusaway-sdk/resources/vehicles_for_agency.rbs +19 -0
  291. data/sig/onebusaway-sdk/util.rbs +90 -0
  292. data/sig/onebusaway-sdk/version.rbs +3 -0
  293. metadata +350 -0
@@ -0,0 +1,751 @@
1
+ # frozen_string_literal: true
2
+
3
+ module OnebusawaySDK
4
+ module Models
5
+ class ArrivalAndDepartureRetrieveResponse < OnebusawaySDK::Models::ResponseWrapper
6
+ # @!attribute data
7
+ #
8
+ # @return [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data]
9
+ required :data, -> { OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data }
10
+
11
+ # @!parse
12
+ # # @param data [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data]
13
+ # #
14
+ # def initialize(data:, **) = super
15
+
16
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
17
+
18
+ class Data < OnebusawaySDK::BaseModel
19
+ # @!attribute entry
20
+ #
21
+ # @return [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry]
22
+ required :entry, -> { OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry }
23
+
24
+ # @!attribute references
25
+ #
26
+ # @return [OnebusawaySDK::Models::References]
27
+ required :references, -> { OnebusawaySDK::Models::References }
28
+
29
+ # @!parse
30
+ # # @param entry [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry]
31
+ # # @param references [OnebusawaySDK::Models::References]
32
+ # #
33
+ # def initialize(entry:, references:, **) = super
34
+
35
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
36
+
37
+ class Entry < OnebusawaySDK::BaseModel
38
+ # @!attribute arrival_enabled
39
+ # Indicates if riders can arrive on this transit vehicle.
40
+ #
41
+ # @return [Boolean]
42
+ required :arrival_enabled, OnebusawaySDK::BooleanModel, api_name: :arrivalEnabled
43
+
44
+ # @!attribute block_trip_sequence
45
+ # Index of this arrival’s trip into the sequence of trips for the active block.
46
+ #
47
+ # @return [Integer]
48
+ required :block_trip_sequence, Integer, api_name: :blockTripSequence
49
+
50
+ # @!attribute departure_enabled
51
+ # Indicates if riders can depart from this transit vehicle.
52
+ #
53
+ # @return [Boolean]
54
+ required :departure_enabled, OnebusawaySDK::BooleanModel, api_name: :departureEnabled
55
+
56
+ # @!attribute number_of_stops_away
57
+ # Number of stops between the arriving transit vehicle and the current stop
58
+ # (excluding the current stop).
59
+ #
60
+ # @return [Integer]
61
+ required :number_of_stops_away, Integer, api_name: :numberOfStopsAway
62
+
63
+ # @!attribute predicted_arrival_time
64
+ # Predicted arrival time, in milliseconds since Unix epoch (zero if no real-time
65
+ # available).
66
+ #
67
+ # @return [Integer]
68
+ required :predicted_arrival_time, Integer, api_name: :predictedArrivalTime
69
+
70
+ # @!attribute predicted_departure_time
71
+ # Predicted departure time, in milliseconds since Unix epoch (zero if no real-time
72
+ # available).
73
+ #
74
+ # @return [Integer]
75
+ required :predicted_departure_time, Integer, api_name: :predictedDepartureTime
76
+
77
+ # @!attribute route_id
78
+ # The ID of the route for the arriving vehicle.
79
+ #
80
+ # @return [String]
81
+ required :route_id, String, api_name: :routeId
82
+
83
+ # @!attribute scheduled_arrival_time
84
+ # Scheduled arrival time, in milliseconds since Unix epoch.
85
+ #
86
+ # @return [Integer]
87
+ required :scheduled_arrival_time, Integer, api_name: :scheduledArrivalTime
88
+
89
+ # @!attribute scheduled_departure_time
90
+ # Scheduled departure time, in milliseconds since Unix epoch.
91
+ #
92
+ # @return [Integer]
93
+ required :scheduled_departure_time, Integer, api_name: :scheduledDepartureTime
94
+
95
+ # @!attribute service_date
96
+ # Time, in milliseconds since the Unix epoch, of midnight for the start of the
97
+ # service date for the trip.
98
+ #
99
+ # @return [Integer]
100
+ required :service_date, Integer, api_name: :serviceDate
101
+
102
+ # @!attribute stop_id
103
+ # The ID of the stop the vehicle is arriving at.
104
+ #
105
+ # @return [String]
106
+ required :stop_id, String, api_name: :stopId
107
+
108
+ # @!attribute stop_sequence
109
+ # Index of the stop into the sequence of stops that make up the trip for this
110
+ # arrival.
111
+ #
112
+ # @return [Integer]
113
+ required :stop_sequence, Integer, api_name: :stopSequence
114
+
115
+ # @!attribute total_stops_in_trip
116
+ # Total number of stops visited on the trip for this arrival.
117
+ #
118
+ # @return [Integer]
119
+ required :total_stops_in_trip, Integer, api_name: :totalStopsInTrip
120
+
121
+ # @!attribute trip_headsign
122
+ # Optional trip headsign that potentially overrides the trip headsign in the
123
+ # referenced trip element.
124
+ #
125
+ # @return [String]
126
+ required :trip_headsign, String, api_name: :tripHeadsign
127
+
128
+ # @!attribute trip_id
129
+ # The ID of the trip for the arriving vehicle.
130
+ #
131
+ # @return [String]
132
+ required :trip_id, String, api_name: :tripId
133
+
134
+ # @!attribute vehicle_id
135
+ # ID of the transit vehicle serving this trip.
136
+ #
137
+ # @return [String]
138
+ required :vehicle_id, String, api_name: :vehicleId
139
+
140
+ # @!attribute [r] actual_track
141
+ # The actual track information of the arriving transit vehicle.
142
+ #
143
+ # @return [String, nil]
144
+ optional :actual_track, String, api_name: :actualTrack
145
+
146
+ # @!parse
147
+ # # @return [String]
148
+ # attr_writer :actual_track
149
+
150
+ # @!attribute [r] distance_from_stop
151
+ # Distance of the arriving transit vehicle from the stop, in meters.
152
+ #
153
+ # @return [Float, nil]
154
+ optional :distance_from_stop, Float, api_name: :distanceFromStop
155
+
156
+ # @!parse
157
+ # # @return [Float]
158
+ # attr_writer :distance_from_stop
159
+
160
+ # @!attribute [r] frequency
161
+ # Information about frequency-based scheduling, if applicable to the trip.
162
+ #
163
+ # @return [String, nil]
164
+ optional :frequency, String
165
+
166
+ # @!parse
167
+ # # @return [String]
168
+ # attr_writer :frequency
169
+
170
+ # @!attribute [r] historical_occupancy
171
+ # Historical occupancy information of the transit vehicle.
172
+ #
173
+ # @return [String, nil]
174
+ optional :historical_occupancy, String, api_name: :historicalOccupancy
175
+
176
+ # @!parse
177
+ # # @return [String]
178
+ # attr_writer :historical_occupancy
179
+
180
+ # @!attribute [r] last_update_time
181
+ # Timestamp of the last update time for this arrival.
182
+ #
183
+ # @return [Integer, nil]
184
+ optional :last_update_time, Integer, api_name: :lastUpdateTime
185
+
186
+ # @!parse
187
+ # # @return [Integer]
188
+ # attr_writer :last_update_time
189
+
190
+ # @!attribute [r] occupancy_status
191
+ # Current occupancy status of the transit vehicle.
192
+ #
193
+ # @return [String, nil]
194
+ optional :occupancy_status, String, api_name: :occupancyStatus
195
+
196
+ # @!parse
197
+ # # @return [String]
198
+ # attr_writer :occupancy_status
199
+
200
+ # @!attribute [r] predicted
201
+ # Indicates if real-time arrival info is available for this trip.
202
+ #
203
+ # @return [Boolean, nil]
204
+ optional :predicted, OnebusawaySDK::BooleanModel
205
+
206
+ # @!parse
207
+ # # @return [Boolean]
208
+ # attr_writer :predicted
209
+
210
+ # @!attribute [r] predicted_arrival_interval
211
+ # Interval for predicted arrival time, if available.
212
+ #
213
+ # @return [String, nil]
214
+ optional :predicted_arrival_interval, String, api_name: :predictedArrivalInterval
215
+
216
+ # @!parse
217
+ # # @return [String]
218
+ # attr_writer :predicted_arrival_interval
219
+
220
+ # @!attribute [r] predicted_departure_interval
221
+ # Interval for predicted departure time, if available.
222
+ #
223
+ # @return [String, nil]
224
+ optional :predicted_departure_interval, String, api_name: :predictedDepartureInterval
225
+
226
+ # @!parse
227
+ # # @return [String]
228
+ # attr_writer :predicted_departure_interval
229
+
230
+ # @!attribute [r] predicted_occupancy
231
+ # Predicted occupancy status of the transit vehicle.
232
+ #
233
+ # @return [String, nil]
234
+ optional :predicted_occupancy, String, api_name: :predictedOccupancy
235
+
236
+ # @!parse
237
+ # # @return [String]
238
+ # attr_writer :predicted_occupancy
239
+
240
+ # @!attribute [r] route_long_name
241
+ # Optional route long name that potentially overrides the route long name in the
242
+ # referenced route element.
243
+ #
244
+ # @return [String, nil]
245
+ optional :route_long_name, String, api_name: :routeLongName
246
+
247
+ # @!parse
248
+ # # @return [String]
249
+ # attr_writer :route_long_name
250
+
251
+ # @!attribute [r] route_short_name
252
+ # Optional route short name that potentially overrides the route short name in the
253
+ # referenced route element.
254
+ #
255
+ # @return [String, nil]
256
+ optional :route_short_name, String, api_name: :routeShortName
257
+
258
+ # @!parse
259
+ # # @return [String]
260
+ # attr_writer :route_short_name
261
+
262
+ # @!attribute [r] scheduled_arrival_interval
263
+ # Interval for scheduled arrival time.
264
+ #
265
+ # @return [String, nil]
266
+ optional :scheduled_arrival_interval, String, api_name: :scheduledArrivalInterval
267
+
268
+ # @!parse
269
+ # # @return [String]
270
+ # attr_writer :scheduled_arrival_interval
271
+
272
+ # @!attribute [r] scheduled_departure_interval
273
+ # Interval for scheduled departure time.
274
+ #
275
+ # @return [String, nil]
276
+ optional :scheduled_departure_interval, String, api_name: :scheduledDepartureInterval
277
+
278
+ # @!parse
279
+ # # @return [String]
280
+ # attr_writer :scheduled_departure_interval
281
+
282
+ # @!attribute [r] scheduled_track
283
+ # Scheduled track information of the arriving transit vehicle.
284
+ #
285
+ # @return [String, nil]
286
+ optional :scheduled_track, String, api_name: :scheduledTrack
287
+
288
+ # @!parse
289
+ # # @return [String]
290
+ # attr_writer :scheduled_track
291
+
292
+ # @!attribute [r] situation_ids
293
+ # References to situation elements (if any) applicable to this arrival.
294
+ #
295
+ # @return [Array<String>, nil]
296
+ optional :situation_ids, OnebusawaySDK::ArrayOf[String], api_name: :situationIds
297
+
298
+ # @!parse
299
+ # # @return [Array<String>]
300
+ # attr_writer :situation_ids
301
+
302
+ # @!attribute [r] status
303
+ # Current status of the arrival.
304
+ #
305
+ # @return [String, nil]
306
+ optional :status, String
307
+
308
+ # @!parse
309
+ # # @return [String]
310
+ # attr_writer :status
311
+
312
+ # @!attribute [r] trip_status
313
+ # Trip-specific status for the arriving transit vehicle.
314
+ #
315
+ # @return [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus, nil]
316
+ optional :trip_status,
317
+ -> { OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus },
318
+ api_name: :tripStatus
319
+
320
+ # @!parse
321
+ # # @return [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus]
322
+ # attr_writer :trip_status
323
+
324
+ # @!parse
325
+ # # @param arrival_enabled [Boolean]
326
+ # # @param block_trip_sequence [Integer]
327
+ # # @param departure_enabled [Boolean]
328
+ # # @param number_of_stops_away [Integer]
329
+ # # @param predicted_arrival_time [Integer]
330
+ # # @param predicted_departure_time [Integer]
331
+ # # @param route_id [String]
332
+ # # @param scheduled_arrival_time [Integer]
333
+ # # @param scheduled_departure_time [Integer]
334
+ # # @param service_date [Integer]
335
+ # # @param stop_id [String]
336
+ # # @param stop_sequence [Integer]
337
+ # # @param total_stops_in_trip [Integer]
338
+ # # @param trip_headsign [String]
339
+ # # @param trip_id [String]
340
+ # # @param vehicle_id [String]
341
+ # # @param actual_track [String]
342
+ # # @param distance_from_stop [Float]
343
+ # # @param frequency [String]
344
+ # # @param historical_occupancy [String]
345
+ # # @param last_update_time [Integer]
346
+ # # @param occupancy_status [String]
347
+ # # @param predicted [Boolean]
348
+ # # @param predicted_arrival_interval [String]
349
+ # # @param predicted_departure_interval [String]
350
+ # # @param predicted_occupancy [String]
351
+ # # @param route_long_name [String]
352
+ # # @param route_short_name [String]
353
+ # # @param scheduled_arrival_interval [String]
354
+ # # @param scheduled_departure_interval [String]
355
+ # # @param scheduled_track [String]
356
+ # # @param situation_ids [Array<String>]
357
+ # # @param status [String]
358
+ # # @param trip_status [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus]
359
+ # #
360
+ # def initialize(
361
+ # arrival_enabled:,
362
+ # block_trip_sequence:,
363
+ # departure_enabled:,
364
+ # number_of_stops_away:,
365
+ # predicted_arrival_time:,
366
+ # predicted_departure_time:,
367
+ # route_id:,
368
+ # scheduled_arrival_time:,
369
+ # scheduled_departure_time:,
370
+ # service_date:,
371
+ # stop_id:,
372
+ # stop_sequence:,
373
+ # total_stops_in_trip:,
374
+ # trip_headsign:,
375
+ # trip_id:,
376
+ # vehicle_id:,
377
+ # actual_track: nil,
378
+ # distance_from_stop: nil,
379
+ # frequency: nil,
380
+ # historical_occupancy: nil,
381
+ # last_update_time: nil,
382
+ # occupancy_status: nil,
383
+ # predicted: nil,
384
+ # predicted_arrival_interval: nil,
385
+ # predicted_departure_interval: nil,
386
+ # predicted_occupancy: nil,
387
+ # route_long_name: nil,
388
+ # route_short_name: nil,
389
+ # scheduled_arrival_interval: nil,
390
+ # scheduled_departure_interval: nil,
391
+ # scheduled_track: nil,
392
+ # situation_ids: nil,
393
+ # status: nil,
394
+ # trip_status: nil,
395
+ # **
396
+ # )
397
+ # super
398
+ # end
399
+
400
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
401
+
402
+ class TripStatus < OnebusawaySDK::BaseModel
403
+ # @!attribute active_trip_id
404
+ # Trip ID of the trip the vehicle is actively serving.
405
+ #
406
+ # @return [String]
407
+ required :active_trip_id, String, api_name: :activeTripId
408
+
409
+ # @!attribute block_trip_sequence
410
+ # Index of the active trip into the sequence of trips for the active block.
411
+ #
412
+ # @return [Integer]
413
+ required :block_trip_sequence, Integer, api_name: :blockTripSequence
414
+
415
+ # @!attribute closest_stop
416
+ # ID of the closest stop to the current location of the transit vehicle.
417
+ #
418
+ # @return [String]
419
+ required :closest_stop, String, api_name: :closestStop
420
+
421
+ # @!attribute distance_along_trip
422
+ # Distance, in meters, the transit vehicle has progressed along the active trip.
423
+ #
424
+ # @return [Float]
425
+ required :distance_along_trip, Float, api_name: :distanceAlongTrip
426
+
427
+ # @!attribute last_known_distance_along_trip
428
+ # Last known distance along the trip received in real-time from the transit
429
+ # vehicle.
430
+ #
431
+ # @return [Float]
432
+ required :last_known_distance_along_trip, Float, api_name: :lastKnownDistanceAlongTrip
433
+
434
+ # @!attribute last_location_update_time
435
+ # Timestamp of the last known real-time location update from the transit vehicle.
436
+ #
437
+ # @return [Integer]
438
+ required :last_location_update_time, Integer, api_name: :lastLocationUpdateTime
439
+
440
+ # @!attribute last_update_time
441
+ # Timestamp of the last known real-time update from the transit vehicle.
442
+ #
443
+ # @return [Integer]
444
+ required :last_update_time, Integer, api_name: :lastUpdateTime
445
+
446
+ # @!attribute occupancy_capacity
447
+ # Capacity of the transit vehicle in terms of occupancy.
448
+ #
449
+ # @return [Integer]
450
+ required :occupancy_capacity, Integer, api_name: :occupancyCapacity
451
+
452
+ # @!attribute occupancy_count
453
+ # Current count of occupants in the transit vehicle.
454
+ #
455
+ # @return [Integer]
456
+ required :occupancy_count, Integer, api_name: :occupancyCount
457
+
458
+ # @!attribute occupancy_status
459
+ # Current occupancy status of the transit vehicle.
460
+ #
461
+ # @return [String]
462
+ required :occupancy_status, String, api_name: :occupancyStatus
463
+
464
+ # @!attribute phase
465
+ # Current journey phase of the trip.
466
+ #
467
+ # @return [String]
468
+ required :phase, String
469
+
470
+ # @!attribute predicted
471
+ # Indicates if real-time arrival info is available for this trip.
472
+ #
473
+ # @return [Boolean]
474
+ required :predicted, OnebusawaySDK::BooleanModel
475
+
476
+ # @!attribute schedule_deviation
477
+ # Deviation from the schedule in seconds (positive for late, negative for early).
478
+ #
479
+ # @return [Integer]
480
+ required :schedule_deviation, Integer, api_name: :scheduleDeviation
481
+
482
+ # @!attribute service_date
483
+ # Time, in milliseconds since the Unix epoch, of midnight for the start of the
484
+ # service date for the trip.
485
+ #
486
+ # @return [Integer]
487
+ required :service_date, Integer, api_name: :serviceDate
488
+
489
+ # @!attribute status
490
+ # Current status modifiers for the trip.
491
+ #
492
+ # @return [String]
493
+ required :status, String
494
+
495
+ # @!attribute total_distance_along_trip
496
+ # Total length of the trip, in meters.
497
+ #
498
+ # @return [Float]
499
+ required :total_distance_along_trip, Float, api_name: :totalDistanceAlongTrip
500
+
501
+ # @!attribute [r] closest_stop_time_offset
502
+ # Time offset from the closest stop to the current position of the transit vehicle
503
+ # (in seconds).
504
+ #
505
+ # @return [Integer, nil]
506
+ optional :closest_stop_time_offset, Integer, api_name: :closestStopTimeOffset
507
+
508
+ # @!parse
509
+ # # @return [Integer]
510
+ # attr_writer :closest_stop_time_offset
511
+
512
+ # @!attribute [r] frequency
513
+ # Information about frequency-based scheduling, if applicable to the trip.
514
+ #
515
+ # @return [String, nil]
516
+ optional :frequency, String
517
+
518
+ # @!parse
519
+ # # @return [String]
520
+ # attr_writer :frequency
521
+
522
+ # @!attribute [r] last_known_location
523
+ # Last known location of the transit vehicle.
524
+ #
525
+ # @return [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation, nil]
526
+ optional :last_known_location,
527
+ -> { OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation },
528
+ api_name: :lastKnownLocation
529
+
530
+ # @!parse
531
+ # # @return [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation]
532
+ # attr_writer :last_known_location
533
+
534
+ # @!attribute [r] last_known_orientation
535
+ # Last known orientation value received in real-time from the transit vehicle.
536
+ #
537
+ # @return [Float, nil]
538
+ optional :last_known_orientation, Float, api_name: :lastKnownOrientation
539
+
540
+ # @!parse
541
+ # # @return [Float]
542
+ # attr_writer :last_known_orientation
543
+
544
+ # @!attribute [r] next_stop
545
+ # ID of the next stop the transit vehicle is scheduled to arrive at.
546
+ #
547
+ # @return [String, nil]
548
+ optional :next_stop, String, api_name: :nextStop
549
+
550
+ # @!parse
551
+ # # @return [String]
552
+ # attr_writer :next_stop
553
+
554
+ # @!attribute [r] next_stop_time_offset
555
+ # Time offset from the next stop to the current position of the transit vehicle
556
+ # (in seconds).
557
+ #
558
+ # @return [Integer, nil]
559
+ optional :next_stop_time_offset, Integer, api_name: :nextStopTimeOffset
560
+
561
+ # @!parse
562
+ # # @return [Integer]
563
+ # attr_writer :next_stop_time_offset
564
+
565
+ # @!attribute [r] orientation
566
+ # Orientation of the transit vehicle, represented as an angle in degrees.
567
+ #
568
+ # @return [Float, nil]
569
+ optional :orientation, Float
570
+
571
+ # @!parse
572
+ # # @return [Float]
573
+ # attr_writer :orientation
574
+
575
+ # @!attribute [r] position
576
+ # Current position of the transit vehicle.
577
+ #
578
+ # @return [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::Position, nil]
579
+ optional :position,
580
+ -> { OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::Position }
581
+
582
+ # @!parse
583
+ # # @return [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::Position]
584
+ # attr_writer :position
585
+
586
+ # @!attribute [r] scheduled_distance_along_trip
587
+ # Distance, in meters, the transit vehicle is scheduled to have progressed along
588
+ # the active trip.
589
+ #
590
+ # @return [Float, nil]
591
+ optional :scheduled_distance_along_trip, Float, api_name: :scheduledDistanceAlongTrip
592
+
593
+ # @!parse
594
+ # # @return [Float]
595
+ # attr_writer :scheduled_distance_along_trip
596
+
597
+ # @!attribute [r] situation_ids
598
+ # References to situation elements (if any) applicable to this trip.
599
+ #
600
+ # @return [Array<String>, nil]
601
+ optional :situation_ids, OnebusawaySDK::ArrayOf[String], api_name: :situationIds
602
+
603
+ # @!parse
604
+ # # @return [Array<String>]
605
+ # attr_writer :situation_ids
606
+
607
+ # @!attribute [r] vehicle_id
608
+ # ID of the transit vehicle currently serving the trip.
609
+ #
610
+ # @return [String, nil]
611
+ optional :vehicle_id, String, api_name: :vehicleId
612
+
613
+ # @!parse
614
+ # # @return [String]
615
+ # attr_writer :vehicle_id
616
+
617
+ # @!parse
618
+ # # Trip-specific status for the arriving transit vehicle.
619
+ # #
620
+ # # @param active_trip_id [String]
621
+ # # @param block_trip_sequence [Integer]
622
+ # # @param closest_stop [String]
623
+ # # @param distance_along_trip [Float]
624
+ # # @param last_known_distance_along_trip [Float]
625
+ # # @param last_location_update_time [Integer]
626
+ # # @param last_update_time [Integer]
627
+ # # @param occupancy_capacity [Integer]
628
+ # # @param occupancy_count [Integer]
629
+ # # @param occupancy_status [String]
630
+ # # @param phase [String]
631
+ # # @param predicted [Boolean]
632
+ # # @param schedule_deviation [Integer]
633
+ # # @param service_date [Integer]
634
+ # # @param status [String]
635
+ # # @param total_distance_along_trip [Float]
636
+ # # @param closest_stop_time_offset [Integer]
637
+ # # @param frequency [String]
638
+ # # @param last_known_location [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::LastKnownLocation]
639
+ # # @param last_known_orientation [Float]
640
+ # # @param next_stop [String]
641
+ # # @param next_stop_time_offset [Integer]
642
+ # # @param orientation [Float]
643
+ # # @param position [OnebusawaySDK::Models::ArrivalAndDepartureRetrieveResponse::Data::Entry::TripStatus::Position]
644
+ # # @param scheduled_distance_along_trip [Float]
645
+ # # @param situation_ids [Array<String>]
646
+ # # @param vehicle_id [String]
647
+ # #
648
+ # def initialize(
649
+ # active_trip_id:,
650
+ # block_trip_sequence:,
651
+ # closest_stop:,
652
+ # distance_along_trip:,
653
+ # last_known_distance_along_trip:,
654
+ # last_location_update_time:,
655
+ # last_update_time:,
656
+ # occupancy_capacity:,
657
+ # occupancy_count:,
658
+ # occupancy_status:,
659
+ # phase:,
660
+ # predicted:,
661
+ # schedule_deviation:,
662
+ # service_date:,
663
+ # status:,
664
+ # total_distance_along_trip:,
665
+ # closest_stop_time_offset: nil,
666
+ # frequency: nil,
667
+ # last_known_location: nil,
668
+ # last_known_orientation: nil,
669
+ # next_stop: nil,
670
+ # next_stop_time_offset: nil,
671
+ # orientation: nil,
672
+ # position: nil,
673
+ # scheduled_distance_along_trip: nil,
674
+ # situation_ids: nil,
675
+ # vehicle_id: nil,
676
+ # **
677
+ # )
678
+ # super
679
+ # end
680
+
681
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
682
+
683
+ class LastKnownLocation < OnebusawaySDK::BaseModel
684
+ # @!attribute [r] lat
685
+ # Latitude of the last known location of the transit vehicle.
686
+ #
687
+ # @return [Float, nil]
688
+ optional :lat, Float
689
+
690
+ # @!parse
691
+ # # @return [Float]
692
+ # attr_writer :lat
693
+
694
+ # @!attribute [r] lon
695
+ # Longitude of the last known location of the transit vehicle.
696
+ #
697
+ # @return [Float, nil]
698
+ optional :lon, Float
699
+
700
+ # @!parse
701
+ # # @return [Float]
702
+ # attr_writer :lon
703
+
704
+ # @!parse
705
+ # # Last known location of the transit vehicle.
706
+ # #
707
+ # # @param lat [Float]
708
+ # # @param lon [Float]
709
+ # #
710
+ # def initialize(lat: nil, lon: nil, **) = super
711
+
712
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
713
+ end
714
+
715
+ class Position < OnebusawaySDK::BaseModel
716
+ # @!attribute [r] lat
717
+ # Latitude of the current position of the transit vehicle.
718
+ #
719
+ # @return [Float, nil]
720
+ optional :lat, Float
721
+
722
+ # @!parse
723
+ # # @return [Float]
724
+ # attr_writer :lat
725
+
726
+ # @!attribute [r] lon
727
+ # Longitude of the current position of the transit vehicle.
728
+ #
729
+ # @return [Float, nil]
730
+ optional :lon, Float
731
+
732
+ # @!parse
733
+ # # @return [Float]
734
+ # attr_writer :lon
735
+
736
+ # @!parse
737
+ # # Current position of the transit vehicle.
738
+ # #
739
+ # # @param lat [Float]
740
+ # # @param lon [Float]
741
+ # #
742
+ # def initialize(lat: nil, lon: nil, **) = super
743
+
744
+ # def initialize: (Hash | OnebusawaySDK::BaseModel) -> void
745
+ end
746
+ end
747
+ end
748
+ end
749
+ end
750
+ end
751
+ end