11// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22
33import { APIResource } from '../resource' ;
4+ import { isRequestOptions } from '../core' ;
45import * as Core from '../core' ;
56import * as Shared from './shared' ;
67
@@ -9,9 +10,17 @@ export class StopsForLocation extends APIResource {
910 * stops-for-location
1011 */
1112 list (
12- query : StopsForLocationListParams ,
13+ query ?: StopsForLocationListParams ,
14+ options ?: Core . RequestOptions ,
15+ ) : Core . APIPromise < StopsForLocationListResponse > ;
16+ list ( options ?: Core . RequestOptions ) : Core . APIPromise < StopsForLocationListResponse > ;
17+ list (
18+ query : StopsForLocationListParams | Core . RequestOptions = { } ,
1319 options ?: Core . RequestOptions ,
1420 ) : Core . APIPromise < StopsForLocationListResponse > {
21+ if ( isRequestOptions ( query ) ) {
22+ return this . list ( { } , query ) ;
23+ }
1524 return this . _client . get ( '/api/where/stops-for-location.json' , { query, ...options } ) ;
1625 }
1726}
@@ -59,15 +68,21 @@ export namespace StopsForLocationListResponse {
5968}
6069
6170export interface StopsForLocationListParams {
62- lat : number ;
63-
64- lon : number ;
71+ /**
72+ * If omitted, defaults to 0.0.
73+ */
74+ lat ?: number ;
6575
6676 /**
6777 * An alternative to radius to set the search bounding box (optional)
6878 */
6979 latSpan ?: number ;
7080
81+ /**
82+ * If omitted, defaults to 0.0.
83+ */
84+ lon ?: number ;
85+
7186 /**
7287 * An alternative to radius to set the search bounding box (optional)
7388 */
0 commit comments