fix nearby examples 📝

This commit is contained in:
Jannis R 2018-06-28 12:08:54 +02:00
parent d3815f80d7
commit 471f075dea
No known key found for this signature in database
GPG key ID: 0FE83946296A88A5
4 changed files with 20 additions and 4 deletions

View file

@ -12,7 +12,11 @@ client.journeys('8011167', '8000261', {results: 1, tickets: true})
// client.locations('Berlin Jungfernheide') // client.locations('Berlin Jungfernheide')
// client.locations('Atze Musiktheater', {poi: true, addressses: false, fuzzy: false}) // client.locations('Atze Musiktheater', {poi: true, addressses: false, fuzzy: false})
// client.station('8000309') // Regensburg Hbf // 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) => { .then((data) => {
console.log(require('util').inspect(data, {depth: null})) console.log(require('util').inspect(data, {depth: null}))

View file

@ -12,7 +12,11 @@ client.journeys('8000103', '8000199', {results: 10, tickets: true})
// client.journeyLeg('1|30161|5|100|14032018', 'Bus 52') // client.journeyLeg('1|30161|5|100|14032018', 'Bus 52')
// client.locations('Schleswig', {results: 1}) // client.locations('Schleswig', {results: 1})
// client.station('706990') // Kiel Holunderbusch // 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}) // client.radar(54.4, 10.0, 54.2, 10.2, {results: 10})
.then((data) => { .then((data) => {

View file

@ -11,7 +11,11 @@ client.journeys('1291501', '8100002', {results: 1})
// client.arrivals('8100002', {duration: 10}) // client.arrivals('8100002', {duration: 10})
// client.locations('Salzburg', {results: 2}) // client.locations('Salzburg', {results: 2})
// client.station('8100173') // Graz Hbf // 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({ // client.radar({
// north: 47.827203, // north: 47.827203,
// west: 13.001261, // west: 13.001261,

View file

@ -11,7 +11,11 @@ client.journeys('900000003201', '900000024101', {results: 1, polylines: true})
// client.arrivals('900000013102', {duration: 10}) // client.arrivals('900000013102', {duration: 10})
// client.locations('Alexanderplatz', {results: 2}) // client.locations('Alexanderplatz', {results: 2})
// client.station('900000042101') // Spichernstr // 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({ // client.radar({
// north: 52.52411, // north: 52.52411,
// west: 13.41002, // west: 13.41002,