mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
fix nearby examples 📝
This commit is contained in:
parent
d3815f80d7
commit
471f075dea
4 changed files with 20 additions and 4 deletions
|
@ -12,7 +12,11 @@ client.journeys('8011167', '8000261', {results: 1, tickets: true})
|
|||
// client.locations('Berlin Jungfernheide')
|
||||
// client.locations('Atze Musiktheater', {poi: true, addressses: false, fuzzy: false})
|
||||
// client.station('8000309') // Regensburg Hbf
|
||||
// client.nearby(52.4751309, 13.3656537, {results: 1})
|
||||
// client.nearby({
|
||||
// type: 'location',
|
||||
// latitude: 52.4751309,
|
||||
// longitude: 13.3656537
|
||||
// }, {results: 1})
|
||||
|
||||
.then((data) => {
|
||||
console.log(require('util').inspect(data, {depth: null}))
|
||||
|
|
|
@ -12,7 +12,11 @@ client.journeys('8000103', '8000199', {results: 10, tickets: true})
|
|||
// client.journeyLeg('1|30161|5|100|14032018', 'Bus 52')
|
||||
// client.locations('Schleswig', {results: 1})
|
||||
// client.station('706990') // Kiel Holunderbusch
|
||||
// client.nearby({type: 'location', latitude: 54.295691, longitude: 10.116424}, {distance: 60})
|
||||
// client.nearby({
|
||||
// type: 'location',
|
||||
// latitude: 54.295691,
|
||||
// longitude: 10.116424
|
||||
// }, {distance: 60})
|
||||
// client.radar(54.4, 10.0, 54.2, 10.2, {results: 10})
|
||||
|
||||
.then((data) => {
|
||||
|
|
|
@ -11,7 +11,11 @@ client.journeys('1291501', '8100002', {results: 1})
|
|||
// client.arrivals('8100002', {duration: 10})
|
||||
// client.locations('Salzburg', {results: 2})
|
||||
// client.station('8100173') // Graz Hbf
|
||||
// client.nearby(47.812851, 13.045604, {distance: 60})
|
||||
// client.nearby({
|
||||
// type: 'location',
|
||||
// latitude: 47.812851,
|
||||
// longitude: 13.045604
|
||||
// }, {distance: 60})
|
||||
// client.radar({
|
||||
// north: 47.827203,
|
||||
// west: 13.001261,
|
||||
|
|
|
@ -11,7 +11,11 @@ client.journeys('900000003201', '900000024101', {results: 1, polylines: true})
|
|||
// client.arrivals('900000013102', {duration: 10})
|
||||
// client.locations('Alexanderplatz', {results: 2})
|
||||
// client.station('900000042101') // Spichernstr
|
||||
// client.nearby(52.5137344, 13.4744798, {distance: 60})
|
||||
// client.nearby({
|
||||
// type: 'location',
|
||||
// latitude: 52.5137344,
|
||||
// longitude: 13.4744798
|
||||
// }, {distance: 60})
|
||||
// client.radar({
|
||||
// north: 52.52411,
|
||||
// west: 13.41002,
|
||||
|
|
Loading…
Add table
Reference in a new issue