-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstops-for-agency.ts
54 lines (36 loc) · 1.15 KB
/
stops-for-agency.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
// 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 StopsForAgency extends APIResource {
/**
* Get stops for a specific agency
*/
list(agencyId: string, options?: Core.RequestOptions): Core.APIPromise<StopsForAgencyListResponse> {
return this._client.get(`/api/where/stops-for-agency/${agencyId}.json`, options);
}
}
export interface StopsForAgencyListResponse extends Shared.ResponseWrapper {
limitExceeded: boolean;
list: Array<StopsForAgencyListResponse.List>;
references: Shared.References;
outOfRange?: boolean;
}
export namespace StopsForAgencyListResponse {
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 declare namespace StopsForAgency {
export { type StopsForAgencyListResponse as StopsForAgencyListResponse };
}