Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Show warning when a trip exceeds the max walk distance #478

Open
barbeau opened this issue Oct 29, 2015 · 1 comment
Open

Show warning when a trip exceeds the max walk distance #478

barbeau opened this issue Oct 29, 2015 · 1 comment
Labels

Comments

@barbeau
Copy link
Member

barbeau commented Oct 29, 2015

Reported by user on the OTP dev list:
https://groups.google.com/d/msg/opentripplanner-users/ZjG49IwIvgo/U9IpGA_ABwAJ

The max walk parameter can currently be set via the Settings. The default OTP server behavior is to return an intinerary, even if it exceeds the max walk parameter. So, we're currently returning trips to the user that exceeds their preferred max walk without letting them know this.

We should show a warning to the user when the walk distance of the trip exceeds the walk distance parameter.

Here's an example of how this warning looks in the Leaflet UI:

image

@barbeau barbeau added the bugs label Oct 29, 2015
@barbeau
Copy link
Member Author

barbeau commented Oct 29, 2015

There is a field in the server response that we can use to know if the walk limit was exceeded:

<itineraries>
...
<walkLimitExceeded>true</walkLimitExceeded>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant