From 471f075deaa06e1340a56701172d531995d953d2 Mon Sep 17 00:00:00 2001 From: Jannis R Date: Thu, 28 Jun 2018 12:08:54 +0200 Subject: [PATCH] fix nearby examples :memo: --- p/db/example.js | 6 +++++- p/nahsh/example.js | 6 +++++- p/oebb/example.js | 6 +++++- p/vbb/example.js | 6 +++++- 4 files changed, 20 insertions(+), 4 deletions(-) diff --git a/p/db/example.js b/p/db/example.js index 2f99d919..b456e927 100644 --- a/p/db/example.js +++ b/p/db/example.js @@ -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})) diff --git a/p/nahsh/example.js b/p/nahsh/example.js index 986e01be..65c2781b 100644 --- a/p/nahsh/example.js +++ b/p/nahsh/example.js @@ -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) => { diff --git a/p/oebb/example.js b/p/oebb/example.js index 208bc367..4c533023 100644 --- a/p/oebb/example.js +++ b/p/oebb/example.js @@ -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, diff --git a/p/vbb/example.js b/p/vbb/example.js index e2e4027a..af234c8a 100644 --- a/p/vbb/example.js +++ b/p/vbb/example.js @@ -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,