-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathapp-config.ts
More file actions
74 lines (67 loc) · 2.01 KB
/
Copy pathapp-config.ts
File metadata and controls
74 lines (67 loc) · 2.01 KB
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
import { AppConfig } from '../shared/types/app-config';
export const APP_CONFIG: AppConfig = {
stages: {
// OJP 1.0
'PROD': {
url: 'https://api.opentransportdata.swiss/ojp2020',
authToken: "PLACEHOLDER_REPLACE__PROD",
},
'INT': {
url: 'https://odpch-api.clients.liip.ch/ojp-passiv-int',
authToken: "PLACEHOLDER_REPLACE__INT",
},
'TEST': {
url: 'https://odpch-api.clients.liip.ch/ojp-test',
authToken: "PLACEHOLDER_REPLACE__INT",
},
'DEV': {
url: 'https://odpch-api.clients.liip.ch/ojp-dev',
authToken: "PLACEHOLDER_REPLACE__INT",
},
// OJP 2.0
'V2-PROD': {
url: 'https://api.opentransportdata.swiss/ojp20',
authToken: "PLACEHOLDER_REPLACE__PROD",
},
'V2-INT': {
url: 'https://odpch-api.clients.liip.ch/ojp20-beta',
authToken: "PLACEHOLDER_REPLACE__V2_INT",
},
'V2-TEST': {
url: 'https://odpch-api.clients.liip.ch/ojp20-test',
authToken: "PLACEHOLDER_REPLACE__V2_INT",
},
'V2-DEV': {
url: 'https://odpch-api.clients.liip.ch/ojp20-dev',
authToken: "PLACEHOLDER_REPLACE__V2_INT",
},
// POCs
'PROD-LB': {
url: 'https://tools.odpch.ch/tmp/cors-proxy?url=https://ojp.lb.prod.ojp.odpch.ch/ojp/ojp',
authToken: "PLACEHOLDER_REPLACE__PROD",
},
'OJP-SI': {
url: 'https://dev.simo.si/OpenAPI/LinkingAlpsBetaPhase/OJP',
authToken: null,
},
'GR TEST': {
url: 'https://tools.odpch.ch/ojp-gr-api',
authToken: null,
},
// OJP Fare
'NOVA-INT': {
url: 'https://api.opentransportdata.swiss/ojpfare?ref=[REQUESTOR_REF]',
authToken: "PLACEHOLDER_REPLACE__FARE_INT",
},
// 2nd shape provider - / at the end is important
'SHAPE_PROVIDER': {
url: 'https://api.geops.io/routing/v1/',
authToken: 'PLACEHOLDER_REPLACE__SHAPE_PROVIDER',
},
'MAPBOX_MAP': {
// style URL
url: 'mapbox://styles/mapbox/light-v10',
authToken: 'PLACEHOLDER_REPLACE__MAPBOX_TOKEN',
}
}
}