diff --git a/p/insa/example.js b/p/insa/example.js index 9397c65c..01ebdaf0 100644 --- a/p/insa/example.js +++ b/p/insa/example.js @@ -26,7 +26,7 @@ client.journeys('008010226', '008013456', {results: 1}) // .then(([journey]) => { // const leg = journey.legs[0] -// return client.journeyLeg(leg.id, leg.line.name) +// return client.trip(leg.id, leg.line.name) // }) .then(data => { diff --git a/p/nahsh/example.js b/p/nahsh/example.js index 62ff2f3c..fad4fbf4 100644 --- a/p/nahsh/example.js +++ b/p/nahsh/example.js @@ -9,7 +9,7 @@ const client = createClient(nahshProfile) client.journeys('8000103', '8000199', {results: 10, tickets: true}) // client.departures('8000199', {duration: 10}) // client.arrivals('8000199', {duration: 5, stationLines: true}) -// client.journeyLeg('1|30161|5|100|14032018', 'Bus 52') +// client.trip('1|30161|5|100|14032018', 'Bus 52') // client.locations('Schleswig', {results: 1}) // client.station('706990') // Kiel Holunderbusch // client.nearby({ diff --git a/p/readme.md b/p/readme.md index dea7cc16..7cb66714 100644 --- a/p/readme.md +++ b/p/readme.md @@ -1,6 +1,6 @@ # Profiles -This directory contains specific customisations for each endpoint, called *profiles*. They **parse data from the API differently, add additional information, or enable non-default methods** (such as [`journeyLeg`](../docs/journey-leg.md)) if they are supported. +This directory contains specific customisations for each endpoint, called *profiles*. They **parse data from the API differently, add additional information, or enable non-default methods** (such as [`trip`](../docs/trip.md)) if they are supported. Each profile has it's own directory. It will be passed into `hafas-client` and is expected to be in a certain structure: diff --git a/p/vbb/example.js b/p/vbb/example.js index 6e249d23..270379ba 100644 --- a/p/vbb/example.js +++ b/p/vbb/example.js @@ -25,7 +25,7 @@ client.journeys('900000003201', '900000024101', {results: 1, polylines: true}) // .then(([journey]) => { // const leg = journey.legs[0] -// return client.journeyLeg(leg.id, leg.line.name, {polyline: true}) +// return client.trip(leg.id, leg.line.name, {polyline: true}) // }) .then((data) => { console.log(require('util').inspect(data, {depth: null}))