mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
profiles: enable reachableFrom
This commit is contained in:
parent
f6040de6fb
commit
8b572d6184
13 changed files with 69 additions and 6 deletions
|
@ -22,6 +22,15 @@ client.journeys('900000003201', '900000024101', {results: 1, polylines: true})
|
|||
// south: 52.51942,
|
||||
// east: 13.41709
|
||||
// }, {results: 10})
|
||||
// client.reachableFrom({
|
||||
// type: 'location',
|
||||
// address: '13353 Berlin-Wedding, Torfstr. 17',
|
||||
// latitude: 52.541797,
|
||||
// longitude: 13.350042
|
||||
// }, {
|
||||
// when: new Date('2018-08-27T10:00:00+0200'),
|
||||
// maxDuration: 10
|
||||
// })
|
||||
|
||||
// .then(([journey]) => {
|
||||
// const leg = journey.legs[0]
|
||||
|
|
|
@ -106,7 +106,9 @@ const bvgProfile = {
|
|||
formatStation,
|
||||
|
||||
trip: true,
|
||||
radar: true
|
||||
radar: true,
|
||||
refreshJourney: true,
|
||||
reachableFrom: true
|
||||
}
|
||||
|
||||
module.exports = bvgProfile
|
||||
|
|
|
@ -22,6 +22,15 @@ client.journeys('000002370', '000005919', {results: 1, polylines: true})
|
|||
// south: 30.225378,
|
||||
// east: -97.786692
|
||||
// }, {results: 10})
|
||||
// client.reachableFrom({
|
||||
// type: 'location',
|
||||
// address: '604 W 9TH ST, Austin, TX 78701',
|
||||
// latitude: 30.272910,
|
||||
// longitude: -97.747883
|
||||
// }, {
|
||||
// when: new Date('2018-08-27T10:00:00+0200'),
|
||||
// maxDuration: 15
|
||||
// })
|
||||
|
||||
// .then(([journey]) => {
|
||||
// const leg = journey.legs[0]
|
||||
|
|
|
@ -27,7 +27,8 @@ const cmtaProfile = {
|
|||
|
||||
trip: true,
|
||||
radar: true,
|
||||
refreshJourney: true
|
||||
refreshJourney: true,
|
||||
reachableFrom: true
|
||||
}
|
||||
|
||||
module.exports = cmtaProfile
|
||||
|
|
|
@ -17,6 +17,15 @@ client.journeys('8011167', '8000261', {results: 1, tickets: true})
|
|||
// latitude: 52.4751309,
|
||||
// longitude: 13.3656537
|
||||
// }, {results: 1})
|
||||
// client.reachableFrom({
|
||||
// type: 'location',
|
||||
// address: '13353 Berlin-Wedding, Torfstr. 17',
|
||||
// latitude: 52.541797,
|
||||
// longitude: 13.350042
|
||||
// }, {
|
||||
// when: new Date('2018-08-27T10:00:00+0200'),
|
||||
// maxDuration: 50
|
||||
// })
|
||||
|
||||
.then((data) => {
|
||||
console.log(require('util').inspect(data, {depth: null}))
|
||||
|
|
|
@ -319,7 +319,8 @@ const dbProfile = {
|
|||
|
||||
formatStation,
|
||||
|
||||
trip: true // todo: #49
|
||||
trip: true, // todo: #49
|
||||
reachableFrom: true
|
||||
}
|
||||
|
||||
module.exports = dbProfile
|
||||
|
|
|
@ -28,6 +28,7 @@ const insaProfile = {
|
|||
trip: true,
|
||||
radar: true,
|
||||
refreshJourney: false
|
||||
// todo: upgrade to version `1.13` in order to enable `reachableFrom: true`
|
||||
}
|
||||
|
||||
module.exports = insaProfile;
|
||||
|
|
|
@ -18,6 +18,15 @@ client.journeys('8000103', '8000199', {results: 10, tickets: true})
|
|||
// longitude: 10.116424
|
||||
// }, {distance: 60})
|
||||
// client.radar(54.4, 10.0, 54.2, 10.2, {results: 10})
|
||||
// client.reachableFrom({
|
||||
// type: 'location',
|
||||
// address: 'Husum, Berliner Straße 80',
|
||||
// latitude: 54.488995,
|
||||
// longitude: 9.056263
|
||||
// }, {
|
||||
// when: new Date('2018-08-27T10:00:00+0200'),
|
||||
// maxDuration: 20
|
||||
// })
|
||||
|
||||
.then((data) => {
|
||||
console.log(require('util').inspect(data, {depth: null}))
|
||||
|
|
|
@ -104,7 +104,8 @@ const nahshProfile = {
|
|||
parseMovement: createParseMovement,
|
||||
|
||||
trip: true,
|
||||
radar: true // todo: see #34
|
||||
radar: true, // todo: see #34
|
||||
reachableFrom: true
|
||||
}
|
||||
|
||||
module.exports = nahshProfile
|
||||
|
|
|
@ -22,6 +22,16 @@ client.journeys('1291501', '8100002', {results: 1})
|
|||
// south: 47.773278,
|
||||
// east: 13.07562
|
||||
// }, {results: 10})
|
||||
// client.reachableFrom({
|
||||
// type: 'location',
|
||||
// id: '970053039',
|
||||
// name: 'Graz, BILLA, Hauptplatz',
|
||||
// latitude: 47.070656,
|
||||
// longitude: 15.438002
|
||||
// }, {
|
||||
// when: new Date('2018-08-27T10:00:00+0200'),
|
||||
// maxDuration: 20
|
||||
// })
|
||||
|
||||
.then((data) => {
|
||||
console.log(require('util').inspect(data, {depth: null}))
|
||||
|
|
|
@ -72,7 +72,8 @@ const oebbProfile = {
|
|||
parseMovement: createParseMovement,
|
||||
|
||||
trip: true,
|
||||
radar: true
|
||||
radar: true,
|
||||
reachableFrom: true
|
||||
}
|
||||
|
||||
module.exports = oebbProfile
|
||||
|
|
|
@ -22,6 +22,15 @@ client.journeys('900000003201', '900000024101', {results: 1, polylines: true})
|
|||
// south: 52.51942,
|
||||
// east: 13.41709
|
||||
// }, {results: 10})
|
||||
// client.reachableFrom({
|
||||
// type: 'location',
|
||||
// address: '13353 Berlin-Wedding, Torfstr. 17',
|
||||
// latitude: 52.541797,
|
||||
// longitude: 13.350042
|
||||
// }, {
|
||||
// when: new Date('2018-08-27T10:00:00+0200'),
|
||||
// maxDuration: 10
|
||||
// })
|
||||
|
||||
// .then(([journey]) => {
|
||||
// const leg = journey.legs[0]
|
||||
|
|
|
@ -143,7 +143,8 @@ const vbbProfile = {
|
|||
|
||||
journeysNumF: false,
|
||||
trip: true,
|
||||
radar: true
|
||||
radar: true,
|
||||
reachableFrom: true
|
||||
}
|
||||
|
||||
module.exports = vbbProfile
|
||||
|
|
Loading…
Add table
Reference in a new issue