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