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.5.6"
".": "1.6.0"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 29
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-30baad9d29b0909d180aae300750a0cd8425b52d7a60ba365b6aa4e5f8da6fab.yml
openapi_spec_hash: 218466af34966d9b08728f107cb3b3b0
config_hash: 3871f5d21bb38ddd334ec04721dea64d
configured_endpoints: 30
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/open-transit%2Fopen-transit-a30b0967ffed17b866dc65b5528148a06a42cce7c3c6d8f740ae2f6079963e7d.yml
openapi_spec_hash: 9bf1e5bf00ef9936a9181ebd0956d5b8
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.6.0 (2026-03-29)

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

### Features

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

## 1.5.6 (2026-03-28)

Full Changelog: [v1.5.5...v1.5.6](https://github.com/OneBusAway/ruby-sdk/compare/v1.5.5...v1.5.6)
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.5.6)
onebusaway-sdk (1.6.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.5.6"
gem "onebusaway-sdk", "~> 1.6.0"
```

<!-- x-release-please-end -->
Expand Down
3 changes: 3 additions & 0 deletions lib/onebusaway_sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@
require_relative "onebusaway_sdk/models/arrival_and_departure_list_response"
require_relative "onebusaway_sdk/models/arrival_and_departure_retrieve_params"
require_relative "onebusaway_sdk/models/arrival_and_departure_retrieve_response"
require_relative "onebusaway_sdk/models/arrivals_and_departures_for_location_list_params"
require_relative "onebusaway_sdk/models/arrivals_and_departures_for_location_list_response"
require_relative "onebusaway_sdk/models/block_retrieve_params"
require_relative "onebusaway_sdk/models/block_retrieve_response"
require_relative "onebusaway_sdk/models/config_retrieve_params"
Expand Down Expand Up @@ -114,6 +116,7 @@
require_relative "onebusaway_sdk/resources/agencies_with_coverage"
require_relative "onebusaway_sdk/resources/agency"
require_relative "onebusaway_sdk/resources/arrival_and_departure"
require_relative "onebusaway_sdk/resources/arrivals_and_departures_for_location"
require_relative "onebusaway_sdk/resources/block"
require_relative "onebusaway_sdk/resources/config"
require_relative "onebusaway_sdk/resources/current_time"
Expand Down
5 changes: 5 additions & 0 deletions lib/onebusaway_sdk/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ class Client < OnebusawaySDK::Internal::Transport::BaseClient
# @return [OnebusawaySDK::Resources::ScheduleForRoute]
attr_reader :schedule_for_route

# @return [OnebusawaySDK::Resources::ArrivalsAndDeparturesForLocation]
attr_reader :arrivals_and_departures_for_location

# @return [OnebusawaySDK::Resources::ArrivalAndDeparture]
attr_reader :arrival_and_departure

Expand Down Expand Up @@ -163,6 +166,8 @@ def initialize(
@routes_for_location = OnebusawaySDK::Resources::RoutesForLocation.new(client: self)
@routes_for_agency = OnebusawaySDK::Resources::RoutesForAgency.new(client: self)
@schedule_for_route = OnebusawaySDK::Resources::ScheduleForRoute.new(client: self)
@arrivals_and_departures_for_location =
OnebusawaySDK::Resources::ArrivalsAndDeparturesForLocation.new(client: self)
@arrival_and_departure = OnebusawaySDK::Resources::ArrivalAndDeparture.new(client: self)
@trip = OnebusawaySDK::Resources::Trip.new(client: self)
@trips_for_location = OnebusawaySDK::Resources::TripsForLocation.new(client: self)
Expand Down
3 changes: 3 additions & 0 deletions lib/onebusaway_sdk/models.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ module OnebusawaySDK

ArrivalAndDepartureRetrieveParams = OnebusawaySDK::Models::ArrivalAndDepartureRetrieveParams

ArrivalsAndDeparturesForLocationListParams =
OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListParams

BlockRetrieveParams = OnebusawaySDK::Models::BlockRetrieveParams

ConfigRetrieveParams = OnebusawaySDK::Models::ConfigRetrieveParams
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# frozen_string_literal: true

module OnebusawaySDK
module Models
# @see OnebusawaySDK::Resources::ArrivalsAndDeparturesForLocation#list
class ArrivalsAndDeparturesForLocationListParams < 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 lon
# The longitude coordinate of the search center.
#
# @return [Float]
required :lon, Float

# @!attribute empty_returns_not_found
# If true, returns a 404 Not Found error instead of an empty result.
#
# @return [Boolean, nil]
optional :empty_returns_not_found, OnebusawaySDK::Internal::Type::Boolean

# @!attribute lat_span
# Sets the latitude limits of the search bounding box.
#
# @return [Float, nil]
optional :lat_span, Float

# @!attribute lon_span
# Sets the longitude limits of the search bounding box.
#
# @return [Float, nil]
optional :lon_span, Float

# @!attribute max_count
# The max size of the list of nearby stops and arrivals to return. Defaults to
# 250, max 1000.
#
# @return [Integer, nil]
optional :max_count, Integer

# @!attribute minutes_after
# Include arrivals and departures this many minutes after the query time.
#
# @return [Integer, nil]
optional :minutes_after, Integer

# @!attribute minutes_before
# Include arrivals and departures this many minutes before the query time.
#
# @return [Integer, nil]
optional :minutes_before, Integer

# @!attribute radius
# The search radius in meters.
#
# @return [Float, nil]
optional :radius, Float

# @!attribute route_type
# Optional list of GTFS routeTypes to filter by (comma delimited) e.g. "1,2,3".
#
# @return [String, nil]
optional :route_type, String

# @!attribute time
# By default, returns the status right now. Can be queried at a specific time
# (milliseconds since epoch) for testing.
#
# @return [Integer, nil]
optional :time, Integer

# @!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: {})
# Some parameter documentations has been truncated, see
# {OnebusawaySDK::Models::ArrivalsAndDeparturesForLocationListParams} for more
# details.
#
# @param lat [Float] The latitude coordinate of the search center.
#
# @param lon [Float] The longitude coordinate of the search center.
#
# @param empty_returns_not_found [Boolean] If true, returns a 404 Not Found error instead of an empty result.
#
# @param lat_span [Float] Sets the latitude limits of the search bounding box.
#
# @param lon_span [Float] Sets the longitude limits of the search bounding box.
#
# @param max_count [Integer] The max size of the list of nearby stops and arrivals to return. Defaults to 250
#
# @param minutes_after [Integer] Include arrivals and departures this many minutes after the query time.
#
# @param minutes_before [Integer] Include arrivals and departures this many minutes before the query time.
#
# @param radius [Float] The search radius in meters.
#
# @param route_type [String] Optional list of GTFS routeTypes to filter by (comma delimited) e.g. "1,2,3".
#
# @param time [Integer] By default, returns the status right now. Can be queried at a specific time (mil
#
# @param request_options [OnebusawaySDK::RequestOptions, Hash{Symbol=>Object}]
end
end
end
Loading