diff --git a/p/cmta/example.js b/p/cmta/example.js index 3fdf0039..b47dfd30 100644 --- a/p/cmta/example.js +++ b/p/cmta/example.js @@ -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] diff --git a/p/cmta/index.js b/p/cmta/index.js index cb82ff6c..7318a9ee 100644 --- a/p/cmta/index.js +++ b/p/cmta/index.js @@ -39,6 +39,7 @@ const cmtaProfile = { transformReqBody, formatProducts, parseProducts: createParseBitmask(modes.allProducts, defaultProducts), + journeyLeg: true, radar: true }