Or, when data is unavailable?
Thank you in advance.
Or, when data is unavailable?
Thank you in advance.
I’ve just written a four-headed Journey Planner interface that can use:
You can always get the TfL API to return a walking route but this requires the options to be set up thus…
class TfLJourneyPlannerSearchParameters
{
public string $via;
public string $date = "yyyyMMdd";
public string $time = "HHmm";
public string $timeIs = "departing";
public string $journeyPreference = "leasttime";
public string $mode = "bus,overground,tube,coach,dlr,tram,walking,cycle";
public string $accessibilityPreference = "";
public string $fromName;
public string $toName;
public string $viaName;
public string $maxTransferMinutes;
public string $maxWalkingMinutes;
public string $walkingSpeed = "average";
public string $cyclePreference;
public string $adjustment;
public string $bikeProficiency;
}
and then set
$request = new TfLJourneyPlannerSearchParameters();
$request->mode = "overground,tube,coach,dlr,tram,elizabeth-line,national-rail,river-bus";
(then use (http_build_query($request)) to switch the object into parameters)
Anyway, the TfL one always provides at least one walking route as long as it can be done in a reasonable amount of time.