-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstops-for-location.ts
92 lines (67 loc) · 1.8 KB
/
stops-for-location.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../resource';
import * as Core from '../core';
import * as Shared from './shared';
export class StopsForLocation extends APIResource {
/**
* stops-for-location
*/
list(
query: StopsForLocationListParams,
options?: Core.RequestOptions,
): Core.APIPromise<StopsForLocationListResponse> {
return this._client.get('/api/where/stops-for-location.json', { query, ...options });
}
}
export interface StopsForLocationListResponse extends Shared.ResponseWrapper {
data: StopsForLocationListResponse.Data;
}
export namespace StopsForLocationListResponse {
export interface Data {
limitExceeded: boolean;
list: Array<Data.List>;
references: Shared.References;
outOfRange?: boolean;
}
export namespace Data {
export interface List {
id: string;
lat: number;
lon: number;
name: string;
parent: string;
routeIds: Array<string>;
staticRouteIds: Array<string>;
code?: string;
direction?: string;
locationType?: number;
wheelchairBoarding?: string;
}
}
}
export interface StopsForLocationListParams {
lat: number;
lon: number;
/**
* An alternative to radius to set the search bounding box (optional)
*/
latSpan?: number;
/**
* An alternative to radius to set the search bounding box (optional)
*/
lonSpan?: number;
/**
* A search query string to filter the results
*/
query?: string;
/**
* The radius in meters to search within
*/
radius?: number;
}
export declare namespace StopsForLocation {
export {
type StopsForLocationListResponse as StopsForLocationListResponse,
type StopsForLocationListParams as StopsForLocationListParams,
};
}