Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.10.0"
".": "1.11.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 30
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-e8511c379642404d73fd2ff068f81d845054108160ccd58343021bbd0b444a37.yml
openapi_spec_hash: b8824d511c16ed314dc7cee996f4fd97
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit/open-transit-da4eecc88401fd486b0b8ac2a7b3f442748713e3128d878c7f3e24ea7f65f31d.yml
openapi_spec_hash: 8df6b1871782bcd2bd8fb1fb2bbc2694
config_hash: c28ddf5b7754155603d9fd1c5fcaeeff
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.11.0 (2026-07-11)

Full Changelog: [v1.10.0...v1.11.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.10.0...v1.11.0)

### Features

* **api:** api update ([f00c9a8](https://github.com/OneBusAway/ruby-sdk/commit/f00c9a8e96966ace3221cb12601a56c202506a9c))

## 1.10.0 (2026-07-09)

Full Changelog: [v1.9.2...v1.10.0](https://github.com/OneBusAway/ruby-sdk/compare/v1.9.2...v1.10.0)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ GIT
PATH
remote: .
specs:
onebusaway-sdk (1.10.0)
onebusaway-sdk (1.11.0)
cgi
connection_pool

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To use this gem, install via Bundler by adding the following to your application
<!-- x-release-please-start-version -->

```ruby
gem "onebusaway-sdk", "~> 1.10.0"
gem "onebusaway-sdk", "~> 1.11.0"
```

<!-- x-release-please-end -->
Expand Down
28 changes: 18 additions & 10 deletions lib/onebusaway_sdk/models/routes_for_location_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@ class RoutesForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel
include OnebusawaySDK::Internal::Type::RequestParameters

# @!attribute lat
# If omitted, defaults to 0.0.
#
# @return [Float]
required :lat, Float

# @!attribute lon
#
# @return [Float]
required :lon, Float
# @return [Float, nil]
optional :lat, Float

# @!attribute lat_span
#
# @return [Float, nil]
optional :lat_span, Float

# @!attribute lon
# If omitted, defaults to 0.0.
#
# @return [Float, nil]
optional :lon, Float

# @!attribute lon_span
#
# @return [Float, nil]
Expand All @@ -37,13 +39,19 @@ class RoutesForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel
# @return [Float, nil]
optional :radius, Float

# @!method initialize(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
# @param lat [Float]
# @param lon [Float]
# @!method initialize(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
# @param lat [Float] If omitted, defaults to 0.0.
#
# @param lat_span [Float]
#
# @param lon [Float] If omitted, defaults to 0.0.
#
# @param lon_span [Float]
#
# @param query [String]
#
# @param radius [Float]
#
# @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
end
end
Expand Down
24 changes: 13 additions & 11 deletions lib/onebusaway_sdk/models/stops_for_location_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,23 @@ class StopsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel
include OnebusawaySDK::Internal::Type::RequestParameters

# @!attribute lat
# If omitted, defaults to 0.0.
#
# @return [Float]
required :lat, Float

# @!attribute lon
#
# @return [Float]
required :lon, Float
# @return [Float, nil]
optional :lat, Float

# @!attribute lat_span
# An alternative to radius to set the search bounding box (optional)
#
# @return [Float, nil]
optional :lat_span, Float

# @!attribute lon
# If omitted, defaults to 0.0.
#
# @return [Float, nil]
optional :lon, Float

# @!attribute lon_span
# An alternative to radius to set the search bounding box (optional)
#
Expand All @@ -41,13 +43,13 @@ class StopsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel
# @return [Float, nil]
optional :radius, Float

# @!method initialize(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
# @param lat [Float]
#
# @param lon [Float]
# @!method initialize(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
# @param lat [Float] If omitted, defaults to 0.0.
#
# @param lat_span [Float] An alternative to radius to set the search bounding box (optional)
#
# @param lon [Float] If omitted, defaults to 0.0.
#
# @param lon_span [Float] An alternative to radius to set the search bounding box (optional)
#
# @param query [String] A search query string to filter the results
Expand Down
34 changes: 17 additions & 17 deletions lib/onebusaway_sdk/models/trips_for_location_list_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,12 @@ class TripsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel
extend OnebusawaySDK::Internal::Type::RequestParameters::Converter
include OnebusawaySDK::Internal::Type::RequestParameters

# @!attribute lat
# The latitude coordinate of the search center
#
# @return [Float]
required :lat, Float

# @!attribute lat_span
# Latitude span of the search bounding box
#
# @return [Float]
required :lat_span, Float

# @!attribute lon
# The longitude coordinate of the search center
#
# @return [Float]
required :lon, Float

# @!attribute lon_span
# Longitude span of the search bounding box
#
Expand All @@ -45,28 +33,40 @@ class TripsForLocationListParams < OnebusawaySDK::Internal::Type::BaseModel
# @return [Boolean, nil]
optional :include_trip, OnebusawaySDK::Internal::Type::Boolean

# @!attribute lat
# The latitude coordinate of the search center. If omitted, defaults to 0.0.
#
# @return [Float, nil]
optional :lat, Float

# @!attribute lon
# The longitude coordinate of the search center. If omitted, defaults to 0.0.
#
# @return [Float, nil]
optional :lon, Float

# @!attribute time
# Specific time for the query. Defaults to the current time.
#
# @return [Integer, nil]
optional :time, Integer

# @!method initialize(lat:, lat_span:, lon:, lon_span:, include_schedule: nil, include_trip: nil, time: nil, request_options: {})
# @!method initialize(lat_span:, lon_span:, include_schedule: nil, include_trip: nil, lat: nil, lon: nil, time: nil, request_options: {})
# Some parameter documentations has been truncated, see
# {OnebusawaySDK::Models::TripsForLocationListParams} for more details.
#
# @param lat [Float] The latitude coordinate of the search center
#
# @param lat_span [Float] Latitude span of the search bounding box
#
# @param lon [Float] The longitude coordinate of the search center
#
# @param lon_span [Float] Longitude span of the search bounding box
#
# @param include_schedule [Boolean] Whether to include full schedule elements in the tripDetails section. Defaults t
#
# @param include_trip [Boolean] Whether to include full trip elements in the references section. Defaults to tru
#
# @param lat [Float] The latitude coordinate of the search center. If omitted, defaults to 0.0.
#
# @param lon [Float] The longitude coordinate of the search center. If omitted, defaults to 0.0.
#
# @param time [Integer] Specific time for the query. Defaults to the current time.
#
# @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
Expand Down
14 changes: 10 additions & 4 deletions lib/onebusaway_sdk/resources/routes_for_location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,26 @@ module Resources
class RoutesForLocation
# routes-for-location
#
# @overload list(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
# @overload list(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
#
# @param lat [Float] If omitted, defaults to 0.0.
#
# @param lat [Float]
# @param lon [Float]
# @param lat_span [Float]
#
# @param lon [Float] If omitted, defaults to 0.0.
#
# @param lon_span [Float]
#
# @param query [String]
#
# @param radius [Float]
#
# @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil]
#
# @return [OnebusawaySDK::Models::RoutesForLocationListResponse]
#
# @see OnebusawaySDK::Models::RoutesForLocationListParams
def list(params)
def list(params = {})
parsed, options = OnebusawaySDK::RoutesForLocationListParams.dump_request(params)
query = OnebusawaySDK::Internal::Util.encode_query_params(parsed)
@client.request(
Expand Down
10 changes: 5 additions & 5 deletions lib/onebusaway_sdk/resources/stops_for_location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ module Resources
class StopsForLocation
# stops-for-location
#
# @overload list(lat:, lon:, lat_span: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
# @overload list(lat: nil, lat_span: nil, lon: nil, lon_span: nil, query: nil, radius: nil, request_options: {})
#
# @param lat [Float]
#
# @param lon [Float]
# @param lat [Float] If omitted, defaults to 0.0.
#
# @param lat_span [Float] An alternative to radius to set the search bounding box (optional)
#
# @param lon [Float] If omitted, defaults to 0.0.
#
# @param lon_span [Float] An alternative to radius to set the search bounding box (optional)
#
# @param query [String] A search query string to filter the results
Expand All @@ -24,7 +24,7 @@ class StopsForLocation
# @return [OnebusawaySDK::Models::StopsForLocationListResponse]
#
# @see OnebusawaySDK::Models::StopsForLocationListParams
def list(params)
def list(params = {})
parsed, options = OnebusawaySDK::StopsForLocationListParams.dump_request(params)
query = OnebusawaySDK::Internal::Util.encode_query_params(parsed)
@client.request(
Expand Down
10 changes: 5 additions & 5 deletions lib/onebusaway_sdk/resources/trips_for_location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ class TripsForLocation
#
# Retrieve trips for a given location
#
# @overload list(lat:, lat_span:, lon:, lon_span:, include_schedule: nil, include_trip: nil, time: nil, request_options: {})
#
# @param lat [Float] The latitude coordinate of the search center
# @overload list(lat_span:, lon_span:, include_schedule: nil, include_trip: nil, lat: nil, lon: nil, time: nil, request_options: {})
#
# @param lat_span [Float] Latitude span of the search bounding box
#
# @param lon [Float] The longitude coordinate of the search center
#
# @param lon_span [Float] Longitude span of the search bounding box
#
# @param include_schedule [Boolean] Whether to include full schedule elements in the tripDetails section. Defaults t
#
# @param include_trip [Boolean] Whether to include full trip elements in the references section. Defaults to tru
#
# @param lat [Float] The latitude coordinate of the search center. If omitted, defaults to 0.0.
#
# @param lon [Float] The longitude coordinate of the search center. If omitted, defaults to 0.0.
#
# @param time [Integer] Specific time for the query. Defaults to the current time.
#
# @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}, nil]
Expand Down
2 changes: 1 addition & 1 deletion lib/onebusaway_sdk/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module OnebusawaySDK
VERSION = "1.10.0"
VERSION = "1.11.0"
end
26 changes: 18 additions & 8 deletions rbi/onebusaway_sdk/models/routes_for_location_list_params.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,26 @@ module OnebusawaySDK
)
end

sig { returns(Float) }
attr_accessor :lat
# If omitted, defaults to 0.0.
sig { returns(T.nilable(Float)) }
attr_reader :lat

sig { returns(Float) }
attr_accessor :lon
sig { params(lat: Float).void }
attr_writer :lat

sig { returns(T.nilable(Float)) }
attr_reader :lat_span

sig { params(lat_span: Float).void }
attr_writer :lat_span

# If omitted, defaults to 0.0.
sig { returns(T.nilable(Float)) }
attr_reader :lon

sig { params(lon: Float).void }
attr_writer :lon

sig { returns(T.nilable(Float)) }
attr_reader :lon_span

Expand All @@ -47,18 +55,20 @@ module OnebusawaySDK
sig do
params(
lat: Float,
lon: Float,
lat_span: Float,
lon: Float,
lon_span: Float,
query: String,
radius: Float,
request_options: OnebusawaySDK::RequestOptions::OrHash
).returns(T.attached_class)
end
def self.new(
lat:,
lon:,
# If omitted, defaults to 0.0.
lat: nil,
lat_span: nil,
# If omitted, defaults to 0.0.
lon: nil,
lon_span: nil,
query: nil,
radius: nil,
Expand All @@ -70,8 +80,8 @@ module OnebusawaySDK
override.returns(
{
lat: Float,
lon: Float,
lat_span: Float,
lon: Float,
lon_span: Float,
query: String,
radius: Float,
Expand Down
Loading