Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

!ov should warn the user when querying a town that has no train station #5

Open
Foxite opened this issue May 13, 2019 · 0 comments
Open

Comments

@Foxite
Copy link
Owner

Foxite commented May 13, 2019

It should find the nearest train station instead, and also warn that it cannot look up bus routes.

To do this we might need to add all towns into the list of stations, and a flag indicating if the town has a station. We also need to add the coordinate location for each item, existing and new. All of this was already present in the stations.xml file as downloaded from the NS dev page, which was stripped down when we started using it. We can download it again without stripping it down.

When the station search returns a location with no station, it should search the list again, looking for the nearest train station to the requested location. This could take a few seconds per request, so we should add a rate-limit to this feature.

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

No branches or pull requests

1 participant