Query nominatim to find railway station coordinates
What works:
- Freshly imported tickets get their station names resolved
- Resolving is retried after editing the reservation (to fix the station name)
Questions:
- Is the QCoro usage okay here? Should not be to hard to do without it, but the structure is quite nice with it.
to do:
-
bias arrival query to departure coordinates, check whether destination is realistically reachable by MOT from origin. If not, try the other way around.Nominatim does not support this :(
Problems:
- Nominatim does not support partial names, but tickets sometimes use them. Example: "BERLIN-GESUNDBRUN". Photon sounds like a good solution for this, but currently seems to miss features to limit to railway stations. Small variations lead to very different stations being found, for example "Dresden Hbf" for "WIEN HBF". "Wien Hauptbahnhof" works.
- Potentially use Transitous/MOTIS geocoder but only use the result if the string is an almost-complete match?
Nice to have:
- We should probably disable the alternatives search as long as no coordinates are known. I don't think sending a query to every network is useful in any case. Now users can at least fix the station name until it can be matched, and have a way to make the alternatives search work.
Edited by Jonah Brüchert