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.28.0"
".": "1.29.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.29.0 (2026-07-11)

Full Changelog: [v1.28.0...v1.29.0](https://github.com/OneBusAway/python-sdk/compare/v1.28.0...v1.29.0)

### Features

* **api:** api update ([552140a](https://github.com/OneBusAway/python-sdk/commit/552140acb1d9b4cf77c22d309794a5ee65ab120f))

## 1.28.0 (2026-07-09)

Full Changelog: [v1.27.0...v1.28.0](https://github.com/OneBusAway/python-sdk/compare/v1.27.0...v1.28.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "onebusaway"
version = "1.28.0"
version = "1.29.0"
description = "The official Python library for the onebusaway-sdk API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/onebusaway/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "onebusaway"
__version__ = "1.28.0" # x-release-please-version
__version__ = "1.29.0" # x-release-please-version
20 changes: 14 additions & 6 deletions src/onebusaway/resources/routes_for_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def with_streaming_response(self) -> RoutesForLocationResourceWithStreamingRespo
def list(
self,
*,
lat: float,
lon: float,
lat: float | Omit = omit,
lat_span: float | Omit = omit,
lon: float | Omit = omit,
lon_span: float | Omit = omit,
query: str | Omit = omit,
radius: float | Omit = omit,
Expand All @@ -61,6 +61,10 @@ def list(
routes-for-location

Args:
lat: If omitted, defaults to 0.0.

lon: If omitted, defaults to 0.0.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -79,8 +83,8 @@ def list(
query=maybe_transform(
{
"lat": lat,
"lon": lon,
"lat_span": lat_span,
"lon": lon,
"lon_span": lon_span,
"query": query,
"radius": radius,
Expand Down Expand Up @@ -115,9 +119,9 @@ def with_streaming_response(self) -> AsyncRoutesForLocationResourceWithStreaming
async def list(
self,
*,
lat: float,
lon: float,
lat: float | Omit = omit,
lat_span: float | Omit = omit,
lon: float | Omit = omit,
lon_span: float | Omit = omit,
query: str | Omit = omit,
radius: float | Omit = omit,
Expand All @@ -132,6 +136,10 @@ async def list(
routes-for-location

Args:
lat: If omitted, defaults to 0.0.

lon: If omitted, defaults to 0.0.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -150,8 +158,8 @@ async def list(
query=await async_maybe_transform(
{
"lat": lat,
"lon": lon,
"lat_span": lat_span,
"lon": lon,
"lon_span": lon_span,
"query": query,
"radius": radius,
Expand Down
20 changes: 14 additions & 6 deletions src/onebusaway/resources/stops_for_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def with_streaming_response(self) -> StopsForLocationResourceWithStreamingRespon
def list(
self,
*,
lat: float,
lon: float,
lat: float | Omit = omit,
lat_span: float | Omit = omit,
lon: float | Omit = omit,
lon_span: float | Omit = omit,
query: str | Omit = omit,
radius: float | Omit = omit,
Expand All @@ -61,8 +61,12 @@ def list(
stops-for-location

Args:
lat: If omitted, defaults to 0.0.

lat_span: An alternative to radius to set the search bounding box (optional)

lon: If omitted, defaults to 0.0.

lon_span: An alternative to radius to set the search bounding box (optional)

query: A search query string to filter the results
Expand All @@ -87,8 +91,8 @@ def list(
query=maybe_transform(
{
"lat": lat,
"lon": lon,
"lat_span": lat_span,
"lon": lon,
"lon_span": lon_span,
"query": query,
"radius": radius,
Expand Down Expand Up @@ -123,9 +127,9 @@ def with_streaming_response(self) -> AsyncStopsForLocationResourceWithStreamingR
async def list(
self,
*,
lat: float,
lon: float,
lat: float | Omit = omit,
lat_span: float | Omit = omit,
lon: float | Omit = omit,
lon_span: float | Omit = omit,
query: str | Omit = omit,
radius: float | Omit = omit,
Expand All @@ -140,8 +144,12 @@ async def list(
stops-for-location

Args:
lat: If omitted, defaults to 0.0.

lat_span: An alternative to radius to set the search bounding box (optional)

lon: If omitted, defaults to 0.0.

lon_span: An alternative to radius to set the search bounding box (optional)

query: A search query string to filter the results
Expand All @@ -166,8 +174,8 @@ async def list(
query=await async_maybe_transform(
{
"lat": lat,
"lon": lon,
"lat_span": lat_span,
"lon": lon,
"lon_span": lon_span,
"query": query,
"radius": radius,
Expand Down
32 changes: 16 additions & 16 deletions src/onebusaway/resources/trips_for_location.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def with_streaming_response(self) -> TripsForLocationResourceWithStreamingRespon
def list(
self,
*,
lat: float,
lat_span: float,
lon: float,
lon_span: float,
include_schedule: bool | Omit = omit,
include_trip: bool | Omit = omit,
lat: float | Omit = omit,
lon: float | Omit = omit,
time: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -62,12 +62,8 @@ def list(
Retrieve trips for a given location

Args:
lat: The latitude coordinate of the search center

lat_span: Latitude span of the search bounding box

lon: The longitude coordinate of the search center

lon_span: Longitude span of the search bounding box

include_schedule: Whether to include full schedule elements in the tripDetails section. Defaults
Expand All @@ -76,6 +72,10 @@ def list(
include_trip: Whether to include full trip elements in the references section. Defaults to
true.

lat: The latitude coordinate of the search center. If omitted, defaults to 0.0.

lon: The longitude coordinate of the search center. If omitted, defaults to 0.0.

time: Specific time for the query. Defaults to the current time.

extra_headers: Send extra headers
Expand All @@ -95,12 +95,12 @@ def list(
timeout=timeout,
query=maybe_transform(
{
"lat": lat,
"lat_span": lat_span,
"lon": lon,
"lon_span": lon_span,
"include_schedule": include_schedule,
"include_trip": include_trip,
"lat": lat,
"lon": lon,
"time": time,
},
trips_for_location_list_params.TripsForLocationListParams,
Expand Down Expand Up @@ -133,12 +133,12 @@ def with_streaming_response(self) -> AsyncTripsForLocationResourceWithStreamingR
async def list(
self,
*,
lat: float,
lat_span: float,
lon: float,
lon_span: float,
include_schedule: bool | Omit = omit,
include_trip: bool | Omit = omit,
lat: float | Omit = omit,
lon: float | Omit = omit,
time: int | Omit = omit,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
Expand All @@ -151,12 +151,8 @@ async def list(
Retrieve trips for a given location

Args:
lat: The latitude coordinate of the search center

lat_span: Latitude span of the search bounding box

lon: The longitude coordinate of the search center

lon_span: Longitude span of the search bounding box

include_schedule: Whether to include full schedule elements in the tripDetails section. Defaults
Expand All @@ -165,6 +161,10 @@ async def list(
include_trip: Whether to include full trip elements in the references section. Defaults to
true.

lat: The latitude coordinate of the search center. If omitted, defaults to 0.0.

lon: The longitude coordinate of the search center. If omitted, defaults to 0.0.

time: Specific time for the query. Defaults to the current time.

extra_headers: Send extra headers
Expand All @@ -184,12 +184,12 @@ async def list(
timeout=timeout,
query=await async_maybe_transform(
{
"lat": lat,
"lat_span": lat_span,
"lon": lon,
"lon_span": lon_span,
"include_schedule": include_schedule,
"include_trip": include_trip,
"lat": lat,
"lon": lon,
"time": time,
},
trips_for_location_list_params.TripsForLocationListParams,
Expand Down
10 changes: 6 additions & 4 deletions src/onebusaway/types/routes_for_location_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

from __future__ import annotations

from typing_extensions import Required, Annotated, TypedDict
from typing_extensions import Annotated, TypedDict

from .._utils import PropertyInfo

__all__ = ["RoutesForLocationListParams"]


class RoutesForLocationListParams(TypedDict, total=False):
lat: Required[float]

lon: Required[float]
lat: float
"""If omitted, defaults to 0.0."""

lat_span: Annotated[float, PropertyInfo(alias="latSpan")]

lon: float
"""If omitted, defaults to 0.0."""

lon_span: Annotated[float, PropertyInfo(alias="lonSpan")]

query: str
Expand Down
10 changes: 6 additions & 4 deletions src/onebusaway/types/stops_for_location_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@

from __future__ import annotations

from typing_extensions import Required, Annotated, TypedDict
from typing_extensions import Annotated, TypedDict

from .._utils import PropertyInfo

__all__ = ["StopsForLocationListParams"]


class StopsForLocationListParams(TypedDict, total=False):
lat: Required[float]

lon: Required[float]
lat: float
"""If omitted, defaults to 0.0."""

lat_span: Annotated[float, PropertyInfo(alias="latSpan")]
"""An alternative to radius to set the search bounding box (optional)"""

lon: float
"""If omitted, defaults to 0.0."""

lon_span: Annotated[float, PropertyInfo(alias="lonSpan")]
"""An alternative to radius to set the search bounding box (optional)"""

Expand Down
12 changes: 6 additions & 6 deletions src/onebusaway/types/trips_for_location_list_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@


class TripsForLocationListParams(TypedDict, total=False):
lat: Required[float]
"""The latitude coordinate of the search center"""

lat_span: Required[Annotated[float, PropertyInfo(alias="latSpan")]]
"""Latitude span of the search bounding box"""

lon: Required[float]
"""The longitude coordinate of the search center"""

lon_span: Required[Annotated[float, PropertyInfo(alias="lonSpan")]]
"""Longitude span of the search bounding box"""

Expand All @@ -34,5 +28,11 @@ class TripsForLocationListParams(TypedDict, total=False):
Defaults to true.
"""

lat: float
"""The latitude coordinate of the search center. If omitted, defaults to 0.0."""

lon: float
"""The longitude coordinate of the search center. If omitted, defaults to 0.0."""

time: int
"""Specific time for the query. Defaults to the current time."""
Loading