CMTA: Corrected "nearby" example, enabled journeyLeg

This commit is contained in:
Nick Turskyi 2018-06-04 08:30:24 -05:00 committed by Jannis Redmann
parent 980eaa3b6e
commit 6acbd8b1b1
2 changed files with 6 additions and 1 deletions

View file

@ -10,7 +10,11 @@ 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('000005534') // Downtown light rail station // 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}) // 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]

View file

@ -39,6 +39,7 @@ const cmtaProfile = {
transformReqBody, transformReqBody,
formatProducts, formatProducts,
parseProducts: createParseBitmask(modes.allProducts, defaultProducts), parseProducts: createParseBitmask(modes.allProducts, defaultProducts),
journeyLeg: true,
radar: true radar: true
} }