mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
CMTA: Corrected "nearby" example, enabled journeyLeg
This commit is contained in:
parent
980eaa3b6e
commit
6acbd8b1b1
2 changed files with 6 additions and 1 deletions
|
@ -10,7 +10,11 @@ client.journeys('000002370', '000005919', {results: 1, polylines: true})
|
|||
// client.departures('000002370', {duration: 1})
|
||||
// client.locations('Westgate', {results: 2})
|
||||
// client.location('000005534') // Downtown light rail station
|
||||
// client.nearby(30.266222, -97.746058, {distance: 60})
|
||||
// client.nearby({
|
||||
// type: 'location',
|
||||
// latitude: 30.266222,
|
||||
// longtitude: -97.746058
|
||||
// }, {distance: 60})
|
||||
// client.radar(30.240877, -97.804588, 30.225378, -97.786692, {results: 10})
|
||||
// .then(([journey]) => {
|
||||
// const leg = journey.legs[0]
|
||||
|
|
|
@ -39,6 +39,7 @@ const cmtaProfile = {
|
|||
transformReqBody,
|
||||
formatProducts,
|
||||
parseProducts: createParseBitmask(modes.allProducts, defaultProducts),
|
||||
journeyLeg: true,
|
||||
radar: true
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue