onebusaway-sdk 1.10.0 → 1.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ce8ae195267620bf3f3d4756b7346d986db0bb509f47124e645a235cada8eb3f
4
- data.tar.gz: 83ff71ef490e0a752fea5bb5cba7e516cb87100ee534188e7d14982705ad3fef
3
+ metadata.gz: 00c2795363cd1100eda878a730ab05aa6f037627fbfb554c7c69207d66ed1057
4
+ data.tar.gz: efc5f572801e0321dbfd2a047cd5d57159cc318bcb19f352506638fdbeb75c68
5
5
  SHA512:
6
- metadata.gz: 7144a1dc9c7622b82e748f4f471ef91a3d531acc9104be51a5198936f490bf6922aef6b0cc9977398735962f7b2492afa97985ffafa70e5233b2059a36057411
7
- data.tar.gz: a319a2c8aa9b66e60e61685cd8e77720eaa3b67d37285d9a6004449a838b32e471c2fb2a048cbd10bbf81547927b49e1e4dacf83b88ea1965122c8a9c4e93839
6
+ metadata.gz: bbe440400ecc270355c9b6d1b4aa748ff2b1282920a837f3cde29fbcc16c6574041c1994fa51abb276b545c9cb1a94b21ec9eadacd105a8b1361bd99233271c2
7
+ data.tar.gz: 2e5f232b32fc5693c0454019a35840571c5da81c3d53e1aa294d3c2e9a5030a973700ef495e9fdfcecb3b2e733580ff60940e49b3f092f9958e938d6bbb04050
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.11.0 (2026-07-11)
4
+
5
+ Full Changelog: [v1.10.0...v1.11.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.10.0...v1.11.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** api update ([f00c9a8](https://github.com/OneBusAway/ruby-sdk/commit/f00c9a8e96966ace3221cb12601a56c202506a9c))
10
+
3
11
  ## 1.10.0 (2026-07-09)
4
12
 
5
13
  Full Changelog: [v1.9.2...v1.10.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.9.2...v1.10.0)
data/README.md CHANGED
@@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
17
17
  <!-- x-release-please-start-version -->
18
18
 
19
19
  ```ruby
20
- gem "onebusaway-sdk", "~> 1.10.0"
20
+ gem "onebusaway-sdk", "~> 1.11.0"
21
21
  ```
22
22
 
23
23
  <!-- x-release-please-end -->
@@ -8,20 +8,22 @@ module OnebusawaySDK
8
8
  include OnebusawaySDK::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute lat
11
+ # If omitted, defaults to 0.0.
11
12
  #
12
- # @return [Float]
13
- required :lat, Float
14
-
15
- # @!attribute lon
16
- #
17
- # @return [Float]
18
- required :lon, Float
13
+ # @return [Float, nil]
14
+ optional :lat, Float
19
15
 
20
16
  # @!attribute lat_span
21
17
  #
22
18
  # @return [Float, nil]
23
19
  optional :lat_span, Float
24
20
 
21
+ # @!attribute lon
22
+ # If omitted, defaults to 0.0.
23
+ #
24
+ # @return [Float, nil]
25
+ optional :lon, Float
26
+
25
27
  # @!attribute lon_span
26
28
  #
27
29
  # @return [Float, nil]
@@ -37,13 +39,19 @@ module OnebusawaySDK
37
39
  # @return [Float, nil]
38
40
  optional :radius, Float
39
41
 
40
- # @!method initialize(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
41
- # @param lat [Float]
42
- # @param lon [Float]
42
+ # @!method initialize(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
43
+ # @param lat [Float] If omitted, defaults to 0.0.
44
+ #
43
45
  # @param lat_span [Float]
46
+ #
47
+ # @param lon [Float] If omitted, defaults to 0.0.
48
+ #
44
49
  # @param lon_span [Float]
50
+ #
45
51
  # @param query [String]
52
+ #
46
53
  # @param radius [Float]
54
+ #
47
55
  # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
48
56
  end
49
57
  end
@@ -8,14 +8,10 @@ module OnebusawaySDK
8
8
  include OnebusawaySDK::Internal::Type::RequestParameters
9
9
 
10
10
  # @!attribute lat
11
+ # If omitted, defaults to 0.0.
11
12
  #
12
- # @return [Float]
13
- required :lat, Float
14
-
15
- # @!attribute lon
16
- #
17
- # @return [Float]
18
- required :lon, Float
13
+ # @return [Float, nil]
14
+ optional :lat, Float
19
15
 
20
16
  # @!attribute lat_span
21
17
  # An alternative to radius to set the search bounding box (optional)
@@ -23,6 +19,12 @@ module OnebusawaySDK
23
19
  # @return [Float, nil]
24
20
  optional :lat_span, Float
25
21
 
22
+ # @!attribute lon
23
+ # If omitted, defaults to 0.0.
24
+ #
25
+ # @return [Float, nil]
26
+ optional :lon, Float
27
+
26
28
  # @!attribute lon_span
27
29
  # An alternative to radius to set the search bounding box (optional)
28
30
  #
@@ -41,13 +43,13 @@ module OnebusawaySDK
41
43
  # @return [Float, nil]
42
44
  optional :radius, Float
43
45
 
44
- # @!method initialize(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
45
- # @param lat [Float]
46
- #
47
- # @param lon [Float]
46
+ # @!method initialize(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
47
+ # @param lat [Float] If omitted, defaults to 0.0.
48
48
  #
49
49
  # @param lat_span [Float] An alternative to radius to set the search bounding box (optional)
50
50
  #
51
+ # @param lon [Float] If omitted, defaults to 0.0.
52
+ #
51
53
  # @param lon_span [Float] An alternative to radius to set the search bounding box (optional)
52
54
  #
53
55
  # @param query [String] A search query string to filter the results
@@ -7,24 +7,12 @@ module OnebusawaySDK
7
7
  extend OnebusawaySDK::Internal::Type::RequestParameters::Converter
8
8
  include OnebusawaySDK::Internal::Type::RequestParameters
9
9
 
10
- # @!attribute lat
11
- # The latitude coordinate of the search center
12
- #
13
- # @return [Float]
14
- required :lat, Float
15
-
16
10
  # @!attribute lat_span
17
11
  # Latitude span of the search bounding box
18
12
  #
19
13
  # @return [Float]
20
14
  required :lat_span, Float
21
15
 
22
- # @!attribute lon
23
- # The longitude coordinate of the search center
24
- #
25
- # @return [Float]
26
- required :lon, Float
27
-
28
16
  # @!attribute lon_span
29
17
  # Longitude span of the search bounding box
30
18
  #
@@ -45,28 +33,40 @@ module OnebusawaySDK
45
33
  # @return [Boolean, nil]
46
34
  optional :include_trip, OnebusawaySDK::Internal::Type::Boolean
47
35
 
36
+ # @!attribute lat
37
+ # The latitude coordinate of the search center. If omitted, defaults to 0.0.
38
+ #
39
+ # @return [Float, nil]
40
+ optional :lat, Float
41
+
42
+ # @!attribute lon
43
+ # The longitude coordinate of the search center. If omitted, defaults to 0.0.
44
+ #
45
+ # @return [Float, nil]
46
+ optional :lon, Float
47
+
48
48
  # @!attribute time
49
49
  # Specific time for the query. Defaults to the current time.
50
50
  #
51
51
  # @return [Integer, nil]
52
52
  optional :time, Integer
53
53
 
54
- # @!method initialize(lat:, lat_span:, lon:, lon_span:, include_schedule: nil, include_trip: nil, time: nil, request_options: {})
54
+ # @!method initialize(lat_span:, lon_span:, include_schedule: nil, include_trip: nil, lat: nil, lon: nil, time: nil, request_options: {})
55
55
  # Some parameter documentations has been truncated, see
56
56
  # {OnebusawaySDK::Models::TripsForLocationListParams} for more details.
57
57
  #
58
- # @param lat [Float] The latitude coordinate of the search center
59
- #
60
58
  # @param lat_span [Float] Latitude span of the search bounding box
61
59
  #
62
- # @param lon [Float] The longitude coordinate of the search center
63
- #
64
60
  # @param lon_span [Float] Longitude span of the search bounding box
65
61
  #
66
62
  # @param include_schedule [Boolean] Whether to include full schedule elements in the tripDetails section. Defaults t
67
63
  #
68
64
  # @param include_trip [Boolean] Whether to include full trip elements in the references section. Defaults to tru
69
65
  #
66
+ # @param lat [Float] The latitude coordinate of the search center. If omitted, defaults to 0.0.
67
+ #
68
+ # @param lon [Float] The longitude coordinate of the search center. If omitted, defaults to 0.0.
69
+ #
70
70
  # @param time [Integer] Specific time for the query. Defaults to the current time.
71
71
  #
72
72
  # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
@@ -5,20 +5,26 @@ module OnebusawaySDK
5
5
  class RoutesForLocation
6
6
  # routes-for-location
7
7
  #
8
- # @overload list(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
8
+ # @overload list(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
9
+ #
10
+ # @param lat [Float] If omitted, defaults to 0.0.
9
11
  #
10
- # @param lat [Float]
11
- # @param lon [Float]
12
12
  # @param lat_span [Float]
13
+ #
14
+ # @param lon [Float] If omitted, defaults to 0.0.
15
+ #
13
16
  # @param lon_span [Float]
17
+ #
14
18
  # @param query [String]
19
+ #
15
20
  # @param radius [Float]
21
+ #
16
22
  # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil]
17
23
  #
18
24
  # @return [OnebusawaySDK::Models::RoutesForLocationListResponse]
19
25
  #
20
26
  # @see OnebusawaySDK::Models::RoutesForLocationListParams
21
- def list(params)
27
+ def list(params = {})
22
28
  parsed, options = OnebusawaySDK::RoutesForLocationListParams.dump_request(params)
23
29
  query = OnebusawaySDK::Internal::Util.encode_query_params(parsed)
24
30
  @client.request(
@@ -5,14 +5,14 @@ module OnebusawaySDK
5
5
  class StopsForLocation
6
6
  # stops-for-location
7
7
  #
8
- # @overload list(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
8
+ # @overload list(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
9
9
  #
10
- # @param lat [Float]
11
- #
12
- # @param lon [Float]
10
+ # @param lat [Float] If omitted, defaults to 0.0.
13
11
  #
14
12
  # @param lat_span [Float] An alternative to radius to set the search bounding box (optional)
15
13
  #
14
+ # @param lon [Float] If omitted, defaults to 0.0.
15
+ #
16
16
  # @param lon_span [Float] An alternative to radius to set the search bounding box (optional)
17
17
  #
18
18
  # @param query [String] A search query string to filter the results
@@ -24,7 +24,7 @@ module OnebusawaySDK
24
24
  # @return [OnebusawaySDK::Models::StopsForLocationListResponse]
25
25
  #
26
26
  # @see OnebusawaySDK::Models::StopsForLocationListParams
27
- def list(params)
27
+ def list(params = {})
28
28
  parsed, options = OnebusawaySDK::StopsForLocationListParams.dump_request(params)
29
29
  query = OnebusawaySDK::Internal::Util.encode_query_params(parsed)
30
30
  @client.request(
@@ -8,20 +8,20 @@ module OnebusawaySDK
8
8
  #
9
9
  # Retrieve trips for a given location
10
10
  #
11
- # @overload list(lat:, lat_span:, lon:, lon_span:, include_schedule: nil, include_trip: nil, time: nil, request_options: {})
12
- #
13
- # @param lat [Float] The latitude coordinate of the search center
11
+ # @overload list(lat_span:, lon_span:, include_schedule: nil, include_trip: nil, lat: nil, lon: nil, time: nil, request_options: {})
14
12
  #
15
13
  # @param lat_span [Float] Latitude span of the search bounding box
16
14
  #
17
- # @param lon [Float] The longitude coordinate of the search center
18
- #
19
15
  # @param lon_span [Float] Longitude span of the search bounding box
20
16
  #
21
17
  # @param include_schedule [Boolean] Whether to include full schedule elements in the tripDetails section. Defaults t
22
18
  #
23
19
  # @param include_trip [Boolean] Whether to include full trip elements in the references section. Defaults to tru
24
20
  #
21
+ # @param lat [Float] The latitude coordinate of the search center. If omitted, defaults to 0.0.
22
+ #
23
+ # @param lon [Float] The longitude coordinate of the search center. If omitted, defaults to 0.0.
24
+ #
25
25
  # @param time [Integer] Specific time for the query. Defaults to the current time.
26
26
  #
27
27
  # @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnebusawaySDK
4
- VERSION = "1.10.0"
4
+ VERSION = "1.11.0"
5
5
  end
@@ -14,11 +14,12 @@ module OnebusawaySDK
14
14
  )
15
15
  end
16
16
 
17
- sig { returns(Float) }
18
- attr_accessor :lat
17
+ # If omitted, defaults to 0.0.
18
+ sig { returns(T.nilable(Float)) }
19
+ attr_reader :lat
19
20
 
20
- sig { returns(Float) }
21
- attr_accessor :lon
21
+ sig { params(lat: Float).void }
22
+ attr_writer :lat
22
23
 
23
24
  sig { returns(T.nilable(Float)) }
24
25
  attr_reader :lat_span
@@ -26,6 +27,13 @@ module OnebusawaySDK
26
27
  sig { params(lat_span: Float).void }
27
28
  attr_writer :lat_span
28
29
 
30
+ # If omitted, defaults to 0.0.
31
+ sig { returns(T.nilable(Float)) }
32
+ attr_reader :lon
33
+
34
+ sig { params(lon: Float).void }
35
+ attr_writer :lon
36
+
29
37
  sig { returns(T.nilable(Float)) }
30
38
  attr_reader :lon_span
31
39
 
@@ -47,8 +55,8 @@ module OnebusawaySDK
47
55
  sig do
48
56
  params(
49
57
  lat: Float,
50
- lon: Float,
51
58
  lat_span: Float,
59
+ lon: Float,
52
60
  lon_span: Float,
53
61
  query: String,
54
62
  radius: Float,
@@ -56,9 +64,11 @@ module OnebusawaySDK
56
64
  ).returns(T.attached_class)
57
65
  end
58
66
  def self.new(
59
- lat:,
60
- lon:,
67
+ # If omitted, defaults to 0.0.
68
+ lat: nil,
61
69
  lat_span: nil,
70
+ # If omitted, defaults to 0.0.
71
+ lon: nil,
62
72
  lon_span: nil,
63
73
  query: nil,
64
74
  radius: nil,
@@ -70,8 +80,8 @@ module OnebusawaySDK
70
80
  override.returns(
71
81
  {
72
82
  lat: Float,
73
- lon: Float,
74
83
  lat_span: Float,
84
+ lon: Float,
75
85
  lon_span: Float,
76
86
  query: String,
77
87
  radius: Float,
@@ -14,11 +14,12 @@ module OnebusawaySDK
14
14
  )
15
15
  end
16
16
 
17
- sig { returns(Float) }
18
- attr_accessor :lat
17
+ # If omitted, defaults to 0.0.
18
+ sig { returns(T.nilable(Float)) }
19
+ attr_reader :lat
19
20
 
20
- sig { returns(Float) }
21
- attr_accessor :lon
21
+ sig { params(lat: Float).void }
22
+ attr_writer :lat
22
23
 
23
24
  # An alternative to radius to set the search bounding box (optional)
24
25
  sig { returns(T.nilable(Float)) }
@@ -27,6 +28,13 @@ module OnebusawaySDK
27
28
  sig { params(lat_span: Float).void }
28
29
  attr_writer :lat_span
29
30
 
31
+ # If omitted, defaults to 0.0.
32
+ sig { returns(T.nilable(Float)) }
33
+ attr_reader :lon
34
+
35
+ sig { params(lon: Float).void }
36
+ attr_writer :lon
37
+
30
38
  # An alternative to radius to set the search bounding box (optional)
31
39
  sig { returns(T.nilable(Float)) }
32
40
  attr_reader :lon_span
@@ -51,8 +59,8 @@ module OnebusawaySDK
51
59
  sig do
52
60
  params(
53
61
  lat: Float,
54
- lon: Float,
55
62
  lat_span: Float,
63
+ lon: Float,
56
64
  lon_span: Float,
57
65
  query: String,
58
66
  radius: Float,
@@ -60,10 +68,12 @@ module OnebusawaySDK
60
68
  ).returns(T.attached_class)
61
69
  end
62
70
  def self.new(
63
- lat:,
64
- lon:,
71
+ # If omitted, defaults to 0.0.
72
+ lat: nil,
65
73
  # An alternative to radius to set the search bounding box (optional)
66
74
  lat_span: nil,
75
+ # If omitted, defaults to 0.0.
76
+ lon: nil,
67
77
  # An alternative to radius to set the search bounding box (optional)
68
78
  lon_span: nil,
69
79
  # A search query string to filter the results
@@ -78,8 +88,8 @@ module OnebusawaySDK
78
88
  override.returns(
79
89
  {
80
90
  lat: Float,
81
- lon: Float,
82
91
  lat_span: Float,
92
+ lon: Float,
83
93
  lon_span: Float,
84
94
  query: String,
85
95
  radius: Float,
@@ -14,18 +14,10 @@ module OnebusawaySDK
14
14
  )
15
15
  end
16
16
 
17
- # The latitude coordinate of the search center
18
- sig { returns(Float) }
19
- attr_accessor :lat
20
-
21
17
  # Latitude span of the search bounding box
22
18
  sig { returns(Float) }
23
19
  attr_accessor :lat_span
24
20
 
25
- # The longitude coordinate of the search center
26
- sig { returns(Float) }
27
- attr_accessor :lon
28
-
29
21
  # Longitude span of the search bounding box
30
22
  sig { returns(Float) }
31
23
  attr_accessor :lon_span
@@ -46,6 +38,20 @@ module OnebusawaySDK
46
38
  sig { params(include_trip: T::Boolean).void }
47
39
  attr_writer :include_trip
48
40
 
41
+ # The latitude coordinate of the search center. If omitted, defaults to 0.0.
42
+ sig { returns(T.nilable(Float)) }
43
+ attr_reader :lat
44
+
45
+ sig { params(lat: Float).void }
46
+ attr_writer :lat
47
+
48
+ # The longitude coordinate of the search center. If omitted, defaults to 0.0.
49
+ sig { returns(T.nilable(Float)) }
50
+ attr_reader :lon
51
+
52
+ sig { params(lon: Float).void }
53
+ attr_writer :lon
54
+
49
55
  # Specific time for the query. Defaults to the current time.
50
56
  sig { returns(T.nilable(Integer)) }
51
57
  attr_reader :time
@@ -55,23 +61,19 @@ module OnebusawaySDK
55
61
 
56
62
  sig do
57
63
  params(
58
- lat: Float,
59
64
  lat_span: Float,
60
- lon: Float,
61
65
  lon_span: Float,
62
66
  include_schedule: T::Boolean,
63
67
  include_trip: T::Boolean,
68
+ lat: Float,
69
+ lon: Float,
64
70
  time: Integer,
65
71
  request_options: OnebusawaySDK::RequestOptions::OrHash
66
72
  ).returns(T.attached_class)
67
73
  end
68
74
  def self.new(
69
- # The latitude coordinate of the search center
70
- lat:,
71
75
  # Latitude span of the search bounding box
72
76
  lat_span:,
73
- # The longitude coordinate of the search center
74
- lon:,
75
77
  # Longitude span of the search bounding box
76
78
  lon_span:,
77
79
  # Whether to include full schedule elements in the tripDetails section. Defaults
@@ -80,6 +82,10 @@ module OnebusawaySDK
80
82
  # Whether to include full trip elements in the references section. Defaults to
81
83
  # true.
82
84
  include_trip: nil,
85
+ # The latitude coordinate of the search center. If omitted, defaults to 0.0.
86
+ lat: nil,
87
+ # The longitude coordinate of the search center. If omitted, defaults to 0.0.
88
+ lon: nil,
83
89
  # Specific time for the query. Defaults to the current time.
84
90
  time: nil,
85
91
  request_options: {}
@@ -89,12 +95,12 @@ module OnebusawaySDK
89
95
  sig do
90
96
  override.returns(
91
97
  {
92
- lat: Float,
93
98
  lat_span: Float,
94
- lon: Float,
95
99
  lon_span: Float,
96
100
  include_schedule: T::Boolean,
97
101
  include_trip: T::Boolean,
102
+ lat: Float,
103
+ lon: Float,
98
104
  time: Integer,
99
105
  request_options: OnebusawaySDK::RequestOptions
100
106
  }
@@ -7,8 +7,8 @@ module OnebusawaySDK
7
7
  sig do
8
8
  params(
9
9
  lat: Float,
10
- lon: Float,
11
10
  lat_span: Float,
11
+ lon: Float,
12
12
  lon_span: Float,
13
13
  query: String,
14
14
  radius: Float,
@@ -16,9 +16,11 @@ module OnebusawaySDK
16
16
  ).returns(OnebusawaySDK::Models::RoutesForLocationListResponse)
17
17
  end
18
18
  def list(
19
- lat:,
20
- lon:,
19
+ # If omitted, defaults to 0.0.
20
+ lat: nil,
21
21
  lat_span: nil,
22
+ # If omitted, defaults to 0.0.
23
+ lon: nil,
22
24
  lon_span: nil,
23
25
  query: nil,
24
26
  radius: nil,
@@ -7,8 +7,8 @@ module OnebusawaySDK
7
7
  sig do
8
8
  params(
9
9
  lat: Float,
10
- lon: Float,
11
10
  lat_span: Float,
11
+ lon: Float,
12
12
  lon_span: Float,
13
13
  query: String,
14
14
  radius: Float,
@@ -16,10 +16,12 @@ module OnebusawaySDK
16
16
  ).returns(OnebusawaySDK::Models::StopsForLocationListResponse)
17
17
  end
18
18
  def list(
19
- lat:,
20
- lon:,
19
+ # If omitted, defaults to 0.0.
20
+ lat: nil,
21
21
  # An alternative to radius to set the search bounding box (optional)
22
22
  lat_span: nil,
23
+ # If omitted, defaults to 0.0.
24
+ lon: nil,
23
25
  # An alternative to radius to set the search bounding box (optional)
24
26
  lon_span: nil,
25
27
  # A search query string to filter the results
@@ -6,23 +6,19 @@ module OnebusawaySDK
6
6
  # Retrieve trips for a given location
7
7
  sig do
8
8
  params(
9
- lat: Float,
10
9
  lat_span: Float,
11
- lon: Float,
12
10
  lon_span: Float,
13
11
  include_schedule: T::Boolean,
14
12
  include_trip: T::Boolean,
13
+ lat: Float,
14
+ lon: Float,
15
15
  time: Integer,
16
16
  request_options: OnebusawaySDK::RequestOptions::OrHash
17
17
  ).returns(OnebusawaySDK::Models::TripsForLocationListResponse)
18
18
  end
19
19
  def list(
20
- # The latitude coordinate of the search center
21
- lat:,
22
20
  # Latitude span of the search bounding box
23
21
  lat_span:,
24
- # The longitude coordinate of the search center
25
- lon:,
26
22
  # Longitude span of the search bounding box
27
23
  lon_span:,
28
24
  # Whether to include full schedule elements in the tripDetails section. Defaults
@@ -31,6 +27,10 @@ module OnebusawaySDK
31
27
  # Whether to include full trip elements in the references section. Defaults to
32
28
  # true.
33
29
  include_trip: nil,
30
+ # The latitude coordinate of the search center. If omitted, defaults to 0.0.
31
+ lat: nil,
32
+ # The longitude coordinate of the search center. If omitted, defaults to 0.0.
33
+ lon: nil,
34
34
  # Specific time for the query. Defaults to the current time.
35
35
  time: nil,
36
36
  request_options: {}
@@ -3,8 +3,8 @@ module OnebusawaySDK
3
3
  type routes_for_location_list_params =
4
4
  {
5
5
  lat: Float,
6
- lon: Float,
7
6
  lat_span: Float,
7
+ lon: Float,
8
8
  lon_span: Float,
9
9
  query: String,
10
10
  radius: Float
@@ -15,14 +15,18 @@ module OnebusawaySDK
15
15
  extend OnebusawaySDK::Internal::Type::RequestParameters::Converter
16
16
  include OnebusawaySDK::Internal::Type::RequestParameters
17
17
 
18
- attr_accessor lat: Float
18
+ attr_reader lat: Float?
19
19
 
20
- attr_accessor lon: Float
20
+ def lat=: (Float) -> Float
21
21
 
22
22
  attr_reader lat_span: Float?
23
23
 
24
24
  def lat_span=: (Float) -> Float
25
25
 
26
+ attr_reader lon: Float?
27
+
28
+ def lon=: (Float) -> Float
29
+
26
30
  attr_reader lon_span: Float?
27
31
 
28
32
  def lon_span=: (Float) -> Float
@@ -36,9 +40,9 @@ module OnebusawaySDK
36
40
  def radius=: (Float) -> Float
37
41
 
38
42
  def initialize: (
39
- lat: Float,
40
- lon: Float,
43
+ ?lat: Float,
41
44
  ?lat_span: Float,
45
+ ?lon: Float,
42
46
  ?lon_span: Float,
43
47
  ?query: String,
44
48
  ?radius: Float,
@@ -47,8 +51,8 @@ module OnebusawaySDK
47
51
 
48
52
  def to_hash: -> {
49
53
  lat: Float,
50
- lon: Float,
51
54
  lat_span: Float,
55
+ lon: Float,
52
56
  lon_span: Float,
53
57
  query: String,
54
58
  radius: Float,
@@ -3,8 +3,8 @@ module OnebusawaySDK
3
3
  type stops_for_location_list_params =
4
4
  {
5
5
  lat: Float,
6
- lon: Float,
7
6
  lat_span: Float,
7
+ lon: Float,
8
8
  lon_span: Float,
9
9
  query: String,
10
10
  radius: Float
@@ -15,14 +15,18 @@ module OnebusawaySDK
15
15
  extend OnebusawaySDK::Internal::Type::RequestParameters::Converter
16
16
  include OnebusawaySDK::Internal::Type::RequestParameters
17
17
 
18
- attr_accessor lat: Float
18
+ attr_reader lat: Float?
19
19
 
20
- attr_accessor lon: Float
20
+ def lat=: (Float) -> Float
21
21
 
22
22
  attr_reader lat_span: Float?
23
23
 
24
24
  def lat_span=: (Float) -> Float
25
25
 
26
+ attr_reader lon: Float?
27
+
28
+ def lon=: (Float) -> Float
29
+
26
30
  attr_reader lon_span: Float?
27
31
 
28
32
  def lon_span=: (Float) -> Float
@@ -36,9 +40,9 @@ module OnebusawaySDK
36
40
  def radius=: (Float) -> Float
37
41
 
38
42
  def initialize: (
39
- lat: Float,
40
- lon: Float,
43
+ ?lat: Float,
41
44
  ?lat_span: Float,
45
+ ?lon: Float,
42
46
  ?lon_span: Float,
43
47
  ?query: String,
44
48
  ?radius: Float,
@@ -47,8 +51,8 @@ module OnebusawaySDK
47
51
 
48
52
  def to_hash: -> {
49
53
  lat: Float,
50
- lon: Float,
51
54
  lat_span: Float,
55
+ lon: Float,
52
56
  lon_span: Float,
53
57
  query: String,
54
58
  radius: Float,
@@ -2,12 +2,12 @@ module OnebusawaySDK
2
2
  module Models
3
3
  type trips_for_location_list_params =
4
4
  {
5
- lat: Float,
6
5
  lat_span: Float,
7
- lon: Float,
8
6
  lon_span: Float,
9
7
  include_schedule: bool,
10
8
  include_trip: bool,
9
+ lat: Float,
10
+ lon: Float,
11
11
  time: Integer
12
12
  }
13
13
  & OnebusawaySDK::Internal::Type::request_parameters
@@ -16,12 +16,8 @@ module OnebusawaySDK
16
16
  extend OnebusawaySDK::Internal::Type::RequestParameters::Converter
17
17
  include OnebusawaySDK::Internal::Type::RequestParameters
18
18
 
19
- attr_accessor lat: Float
20
-
21
19
  attr_accessor lat_span: Float
22
20
 
23
- attr_accessor lon: Float
24
-
25
21
  attr_accessor lon_span: Float
26
22
 
27
23
  attr_reader include_schedule: bool?
@@ -32,28 +28,36 @@ module OnebusawaySDK
32
28
 
33
29
  def include_trip=: (bool) -> bool
34
30
 
31
+ attr_reader lat: Float?
32
+
33
+ def lat=: (Float) -> Float
34
+
35
+ attr_reader lon: Float?
36
+
37
+ def lon=: (Float) -> Float
38
+
35
39
  attr_reader time: Integer?
36
40
 
37
41
  def time=: (Integer) -> Integer
38
42
 
39
43
  def initialize: (
40
- lat: Float,
41
44
  lat_span: Float,
42
- lon: Float,
43
45
  lon_span: Float,
44
46
  ?include_schedule: bool,
45
47
  ?include_trip: bool,
48
+ ?lat: Float,
49
+ ?lon: Float,
46
50
  ?time: Integer,
47
51
  ?request_options: OnebusawaySDK::request_opts
48
52
  ) -> void
49
53
 
50
54
  def to_hash: -> {
51
- lat: Float,
52
55
  lat_span: Float,
53
- lon: Float,
54
56
  lon_span: Float,
55
57
  include_schedule: bool,
56
58
  include_trip: bool,
59
+ lat: Float,
60
+ lon: Float,
57
61
  time: Integer,
58
62
  request_options: OnebusawaySDK::RequestOptions
59
63
  }
@@ -2,9 +2,9 @@ module OnebusawaySDK
2
2
  module Resources
3
3
  class RoutesForLocation
4
4
  def list: (
5
- lat: Float,
6
- lon: Float,
5
+ ?lat: Float,
7
6
  ?lat_span: Float,
7
+ ?lon: Float,
8
8
  ?lon_span: Float,
9
9
  ?query: String,
10
10
  ?radius: Float,
@@ -2,9 +2,9 @@ module OnebusawaySDK
2
2
  module Resources
3
3
  class StopsForLocation
4
4
  def list: (
5
- lat: Float,
6
- lon: Float,
5
+ ?lat: Float,
7
6
  ?lat_span: Float,
7
+ ?lon: Float,
8
8
  ?lon_span: Float,
9
9
  ?query: String,
10
10
  ?radius: Float,
@@ -2,12 +2,12 @@ module OnebusawaySDK
2
2
  module Resources
3
3
  class TripsForLocation
4
4
  def list: (
5
- lat: Float,
6
5
  lat_span: Float,
7
- lon: Float,
8
6
  lon_span: Float,
9
7
  ?include_schedule: bool,
10
8
  ?include_trip: bool,
9
+ ?lat: Float,
10
+ ?lon: Float,
11
11
  ?time: Integer,
12
12
  ?request_options: OnebusawaySDK::request_opts
13
13
  ) -> OnebusawaySDK::Models::TripsForLocationListResponse
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebusaway-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Onebusaway SDK
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-09 00:00:00.000000000 Z
11
+ date: 2026-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi