gasman / bahn

Ruby API for Deutsche Bahn train information
14 stars 1 forks source link

Station.find(8100514) returns wrong station (should be Wien Meidling) #1

Open gasman opened 15 years ago

gasman commented 15 years ago

Station ID 8100514 should be Wien Meidling, but actually returns "Suderwichstr Nr 100, Recklinghausen" because that's what the underlying bahn.de query returns (because it's matching the 100 in the name in preference to the station ID, presumably)

http://reiseauskunft.bahn.de/bin/ajax-getstop.exe/en?REQ0JourneyStopsS0A=1&REQ0JourneyStopsS0G=8100514&js=true&

gasman commented 15 years ago

argh. In fact Wien Meidling is a gestalt entity made up of at least three stations with their own IDs (which do show up in an autocomplete for Wien Meidling), so Wien Meidling 8100514 (as shown on service timetable pages) can't be geolocated at all through the autocompleter.