…migrate to Node 8, sorry. bf3c4c5
…use the journeys entry from the returned object. fcc53b5
…rename leg.id to leg.tripId. 96ff59d
…use leg.walking === true to check for walking legs. 0e1fcb0
…explicitly pass a value for opt.transfers if you want to limit the nr of transfers. 61e7d14
…rename opt.stationLines to opt.linesOfStops. a972dad
…change the station(id) call to stop(id). bad0af8
…pass opt.results if you want more than 5 results. 3bc2eff
…rename opt.stationLines to opt.linesOfStops. a972dad
…rename leg.nextStops to leg.nextStopovers. bbff1f4
…rename opt.stations to opt.stops. 8f9b22e
…rename opt.stationLines to opt.linesOfStops. a972dad
…rename movement.nextStops to movement.nextStopovers. bbff1f4
…rename the product identifier nationalExp to nationalExpress. 567cc98
…use the poi: true flag to check if a location is a POI. eb3ffba
…add poi: true to a location to make it a POI. eb3ffba
…let us know why you need it. We removed it because it is not reliable. 9c44995
…check out the new and slightly different throttling API. 748f8ce
…check out the new and slightly different retrying API. fbde6a1
…rename to arrival.scheduledPlatform/departure.scheduledPlatform. 7e39a2f
…rename to arrival.scheduledWhen/departure.scheduledWhen. 7e39a2f
…rename to leg.scheduledArrival/leg.scheduledDeparture. 7e39a2f
…rename to stopover.scheduledArrival/stopover.scheduledDeparture. 7e39a2f
…rename to stopover.scheduledArrivalPlatform/stopover.scheduledDeparturePlatform. 7e39a2f
…write a custom parseLine implementation that exposes them. a1ffad3
An example with the VBB profile:
const createOrigParseLine = require('hafas-client/parse/line')
const createParseLine = (profile, opt, data) => {
const origParseLine = createOrigParseLine(profile, opt, data)
const parseLine = (p) => {
const res = origParseLine(p)
res.class = p.cls
return res
}
}
const customVbbProfile = Object.assign({}, vbbProfile)
customVbbProfile.parseLine = createParseLine
const hafas = createHafas(customVbbProfile, 'my-awesome-program')…change the parseDateTime to
- return an ISO 8601 string. a9fd9ff
- have accept an optional
tzOffset. ca1105f
…change the parseLocation to strip leading zeros from stop/station IDs. 1e13cf1
…adapt your code to 1646173.