-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.config.js
36 lines (31 loc) · 1 KB
/
app.config.js
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
import { secret } from './app.secret';
const app = {
name: 'SGBus',
displayName: 'SGBus'
};
const mapbox = {
token: secret.mapboxToken
};
const oneMap = {
email: secret.oneMapEmail,
password: secret.oneMapPassword,
tokenUrl: 'https://developers.onemap.sg/privateapi/auth/post/getToken',
busRouteUrl:
'https://developers.onemap.sg/publicapi/busexp/getOneBusRoute?busNo={ServiceNo}&direction={BusDirection}&token={AccessToken}'
};
const lta = {
accountKey: secret.ltaAccountKey,
busServicesUrl: 'http://datamall2.mytransport.sg/ltaodataservice/BusServices',
busStopsUrl: 'http://datamall2.mytransport.sg/ltaodataservice/BusStops',
busRoutesUrl: 'http://datamall2.mytransport.sg/ltaodataservice/BusRoutes',
busArrivalUrl:
'http://datamall2.mytransport.sg/ltaodataservice/BusArrivalv2?BusStopCode={BusStopCode}',
requestConfig: {
headers: {
AccountKey: secret.ltaAccountKey,
Accept: 'application/json'
},
toCamelCase: true
}
};
export { app, mapbox, oneMap, lta };