mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
CMTA: correct examples, enabled radar
This commit is contained in:
parent
533f8ece3c
commit
50de71b6f4
2 changed files with 5 additions and 5 deletions
|
@ -6,13 +6,12 @@ const cmtaProfile = require('.')
|
||||||
const client = createClient(cmtaProfile)
|
const client = createClient(cmtaProfile)
|
||||||
|
|
||||||
// Broadie Oaks to Domain
|
// Broadie Oaks to Domain
|
||||||
client.journeys('000002370', '900000024101', {results: 1, polylines: true})
|
client.journeys('000002370', '000005919', {results: 1, polylines: true})
|
||||||
// client.departures('000002370', {duration: 1})
|
// client.departures('000002370', {duration: 1})
|
||||||
// client.locations('Westgate', {results: 2})
|
// client.locations('Westgate', {results: 2})
|
||||||
// client.location('900000042101') // Spichernstr TODO
|
// client.location('000005534') // Downtown light rail station
|
||||||
// client.nearby(52.5137344, 13.4744798, {distance: 60}) TODO
|
// client.nearby(30.266222, -97.746058, {distance: 60})
|
||||||
// client.radar(52.52411, 13.41002, 52.51942, 13.41709, {results: 10}) TODO
|
// client.radar(30.240877, -97.804588, 30.225378, -97.786692, {results: 10})
|
||||||
|
|
||||||
// .then(([journey]) => {
|
// .then(([journey]) => {
|
||||||
// const leg = journey.legs[0]
|
// const leg = journey.legs[0]
|
||||||
// return client.journeyLeg(leg.id, leg.line.name, {polyline: true})
|
// return client.journeyLeg(leg.id, leg.line.name, {polyline: true})
|
||||||
|
|
|
@ -52,6 +52,7 @@ const cmtaProfile = {
|
||||||
transformReqBody,
|
transformReqBody,
|
||||||
formatProducts,
|
formatProducts,
|
||||||
parseProducts: createParseBitmask(modes.allProducts, defaultProducts),
|
parseProducts: createParseBitmask(modes.allProducts, defaultProducts),
|
||||||
|
radar: true
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = cmtaProfile
|
module.exports = cmtaProfile
|
||||||
|
|
Loading…
Add table
Reference in a new issue