1.3 KiB
1.3 KiB
hafas-client API
journeys(from, to, [opt])– get journeys between locationsrefreshJourney(refreshToken, [opt])– fetch up-to-date/more details of ajourneyjourneysFromTrip(tripId, previousStopover, to, [opt])– get journeys from a trip to a locationtrip(id, lineName, [opt])– get details for a triptripsByName(lineNameOrFahrtNr, [opt])– get all trips matching a namedepartures(station, [opt])– query the next departures at a stationarrivals(station, [opt])– query the next arrivals at a stationlocations(query, [opt])– find stations, POIs and addressesstop(id, [opt])– get details about a stop/stationnearby(location, [opt])– show stations & POIs aroundradar(north, west, south, east, [opt])– find all vehicles currently in a certain areareachableFrom(address, [opt])– get all stations reachable from an address withinnminutesremarks([opt])– get all remarkslines(query, [opt])– get all lines matching a nameserverInfo([opt])– fetch meta information from HAFAS