onebusaway-sdk 1.5.6 → 1.6.0
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/onebusaway_sdk/client.rb +5 -0
- data/lib/onebusaway_sdk/models/arrivals_and_departures_for_location_list_params.rb +108 -0
- data/lib/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rb +655 -0
- data/lib/onebusaway_sdk/models.rb +3 -0
- data/lib/onebusaway_sdk/resources/arrivals_and_departures_for_location.rb +70 -0
- data/lib/onebusaway_sdk/version.rb +1 -1
- data/lib/onebusaway_sdk.rb +3 -0
- data/rbi/onebusaway_sdk/client.rbi +3 -0
- data/rbi/onebusaway_sdk/models/arrivals_and_departures_for_location_list_params.rbi +157 -0
- data/rbi/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbi +1000 -0
- data/rbi/onebusaway_sdk/models.rbi +3 -0
- data/rbi/onebusaway_sdk/resources/arrivals_and_departures_for_location.rbi +61 -0
- data/sig/onebusaway_sdk/client.rbs +2 -0
- data/sig/onebusaway_sdk/models/arrivals_and_departures_for_location_list_params.rbs +94 -0
- data/sig/onebusaway_sdk/models/arrivals_and_departures_for_location_list_response.rbs +525 -0
- data/sig/onebusaway_sdk/models.rbs +2 -0
- data/sig/onebusaway_sdk/resources/arrivals_and_departures_for_location.rbs +22 -0
- metadata +11 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b4feb8d9fe415a19d53880d1c020bb7d807ea18a179b262c0a9e17e2e83f0b3
|
|
4
|
+
data.tar.gz: 4ceb200bf82045e53670a3f18c9e1f57b9cf63d5209c13b7ef53a70b44677763
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cb6f9c4946eb2566c56bf5a4c3bda80ee77ec324e3a989aadf41d63a35659c6d7c6cbda22cc437b957738202e2d13e2ced38015d11f489bfb7564825556d23ab
|
|
7
|
+
data.tar.gz: '0698ef82f3526cf21bbcefe9ffaa29df5f8276b02a1f039fee664302377583ec67adef93caf4a6bcae3225a318605df54ccee2090a76c803308294cefceab844'
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.6.0 (2026-03-29)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.5.6...v1.6.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.5.6...v1.6.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([ba26372](https://github.com/OneBusAway/ruby-sdk/commit/ba26372ea95b6404cf5ae4fcaceb68e32cea5530))
|
|
10
|
+
|
|
3
11
|
## 1.5.6 (2026-03-28)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.5.5...v1.5.6](https://github.com/OneBusAway/ruby-sdk/compare/v1.5.5...v1.5.6)
|
data/README.md
CHANGED
|
@@ -66,6 +66,9 @@ module OnebusawaySDK
|
|
|
66
66
|
# @return [OnebusawaySDK::Resources::ScheduleForRoute]
|
|
67
67
|
attr_reader :schedule_for_route
|
|
68
68
|
|
|
69
|
+
# @return [OnebusawaySDK::Resources::ArrivalsAndDeparturesForLocation]
|
|
70
|
+
attr_reader :arrivals_and_departures_for_location
|
|
71
|
+
|
|
69
72
|
# @return [OnebusawaySDK::Resources::ArrivalAndDeparture]
|
|
70
73
|
attr_reader :arrival_and_departure
|
|
71
74
|
|
|
@@ -163,6 +166,8 @@ module OnebusawaySDK
|
|
|
163
166
|
@routes_for_location = OnebusawaySDK::Resources::RoutesForLocation.new(client: self)
|
|
164
167
|
@routes_for_agency = OnebusawaySDK::Resources::RoutesForAgency.new(client: self)
|
|
165
168
|
@schedule_for_route = OnebusawaySDK::Resources::ScheduleForRoute.new(client: self)
|
|
169
|
+
@arrivals_and_departures_for_location =
|
|
170
|
+
OnebusawaySDK::Resources::ArrivalsAndDeparturesForLocation.new(client: self)
|
|
166
171
|
@arrival_and_departure = OnebusawaySDK::Resources::ArrivalAndDeparture.new(client: self)
|
|
167
172
|
@trip = OnebusawaySDK::Resources::Trip.new(client: self)
|
|
168
173
|
@trips_for_location = OnebusawaySDK::Resources::TripsForLocation.new(client: self)
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module OnebusawaySDK
|
|
4
|
+
module Models
|
|
5
|
+
# @see OnebusawaySDK::Resources::ArrivalsAndDeparturesForLocation#list
|
|
6
|
+
class ArrivalsAndDeparturesForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel
|
|
7
|
+
extend OnebusawaySDK::Internal::Type::RequestParameters::Converter
|
|
8
|
+
include OnebusawaySDK::Internal::Type::RequestParameters
|
|
9
|
+
|
|
10
|
+
# @!attribute lat
|
|
11
|
+
# The latitude coordinate of the search center.
|
|
12
|
+
#
|
|
13
|
+
# @return [Float]
|
|
14
|
+
required :lat, Float
|
|
15
|
+
|
|
16
|
+
# @!attribute lon
|
|
17
|
+
# The longitude coordinate of the search center.
|
|
18
|
+
#
|
|
19
|
+
# @return [Float]
|
|
20
|
+
required :lon, Float
|
|
21
|
+
|
|
22
|
+
# @!attribute empty_returns_not_found
|
|
23
|
+
# If true, returns a 404 Not Found error instead of an empty result.
|
|
24
|
+
#
|
|
25
|
+
# @return [Boolean, nil]
|
|
26
|
+
optional :empty_returns_not_found, OnebusawaySDK::Internal::Type::Boolean
|
|
27
|
+
|
|
28
|
+
# @!attribute lat_span
|
|
29
|
+
# Sets the latitude limits of the search bounding box.
|
|
30
|
+
#
|
|
31
|
+
# @return [Float, nil]
|
|
32
|
+
optional :lat_span, Float
|
|
33
|
+
|
|
34
|
+
# @!attribute lon_span
|
|
35
|
+
# Sets the longitude limits of the search bounding box.
|
|
36
|
+
#
|
|
37
|
+
# @return [Float, nil]
|
|
38
|
+
optional :lon_span, Float
|
|
39
|
+
|
|
40
|
+
# @!attribute max_count
|
|
41
|
+
# The max size of the list of nearby stops and arrivals to return. Defaults to
|
|
42
|
+
# 250, max 1000.
|
|
43
|
+
#
|
|
44
|
+
# @return [Integer, nil]
|
|
45
|
+
optional :max_count, Integer
|
|
46
|
+
|
|
47
|
+
# @!attribute minutes_after
|
|
48
|
+
# Include arrivals and departures this many minutes after the query time.
|
|
49
|
+
#
|
|
50
|
+
# @return [Integer, nil]
|
|
51
|
+
optional :minutes_after, Integer
|
|
52
|
+
|
|
53
|
+
# @!attribute minutes_before
|
|
54
|
+
# Include arrivals and departures this many minutes before the query time.
|
|
55
|
+
#
|
|
56
|
+
# @return [Integer, nil]
|
|
57
|
+
optional :minutes_before, Integer
|
|
58
|
+
|
|
59
|
+
# @!attribute radius
|
|
60
|
+
# The search radius in meters.
|
|
61
|
+
#
|
|
62
|
+
# @return [Float, nil]
|
|
63
|
+
optional :radius, Float
|
|
64
|
+
|
|
65
|
+
# @!attribute route_type
|
|
66
|
+
# Optional list of GTFS routeTypes to filter by (comma delimited) e.g. "1,2,3".
|
|
67
|
+
#
|
|
68
|
+
# @return [String, nil]
|
|
69
|
+
optional :route_type, String
|
|
70
|
+
|
|
71
|
+
# @!attribute time
|
|
72
|
+
# By default, returns the status right now. Can be queried at a specific time
|
|
73
|
+
# (milliseconds since epoch) for testing.
|
|
74
|
+
#
|
|
75
|
+
# @return [Integer, nil]
|
|
76
|
+
optional :time, Integer
|
|
77
|
+
|
|
78
|
+
# @!method initialize(lat:, lon:, empty_returns_not_found: nil, lat_span: nil, lon_span: nil, max_count: nil, minutes_after: nil, minutes_before: nil, radius: nil, route_type: nil, time: nil, request_options: {})
|
|
79
|
+
# Some parameter documentations has been truncated, see
|
|
80
|
+
# {OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListParams} for more
|
|
81
|
+
# details.
|
|
82
|
+
#
|
|
83
|
+
# @param lat [Float] The latitude coordinate of the search center.
|
|
84
|
+
#
|
|
85
|
+
# @param lon [Float] The longitude coordinate of the search center.
|
|
86
|
+
#
|
|
87
|
+
# @param empty_returns_not_found [Boolean] If true, returns a 404 Not Found error instead of an empty result.
|
|
88
|
+
#
|
|
89
|
+
# @param lat_span [Float] Sets the latitude limits of the search bounding box.
|
|
90
|
+
#
|
|
91
|
+
# @param lon_span [Float] Sets the longitude limits of the search bounding box.
|
|
92
|
+
#
|
|
93
|
+
# @param max_count [Integer] The max size of the list of nearby stops and arrivals to return. Defaults to 250
|
|
94
|
+
#
|
|
95
|
+
# @param minutes_after [Integer] Include arrivals and departures this many minutes after the query time.
|
|
96
|
+
#
|
|
97
|
+
# @param minutes_before [Integer] Include arrivals and departures this many minutes before the query time.
|
|
98
|
+
#
|
|
99
|
+
# @param radius [Float] The search radius in meters.
|
|
100
|
+
#
|
|
101
|
+
# @param route_type [String] Optional list of GTFS routeTypes to filter by (comma delimited) e.g. "1,2,3".
|
|
102
|
+
#
|
|
103
|
+
# @param time [Integer] By default, returns the status right now. Can be queried at a specific time (mil
|
|
104
|
+
#
|
|
105
|
+
# @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
|
+
end
|