jpatokal / opal_or_not

Public transport fare comparison engine
http://opalornot.com
GNU Affero General Public License v3.0
18 stars 1 forks source link

Train transfer issues #4

Open Jeremy512 opened 10 years ago

Jeremy512 commented 10 years ago

I can't get the site to work if I specify this itinerary, one leg via train and one via bus: Input: five days a week, Circular Quay to Bondi Junction. then Add transfer, choose any of the bus options Get error, "Sorry, couldn't work out a sensible route between those two stations. Try a bus instead?"

I guess this is because the site needs to calculate a transfer at Town Hall or Central for this route? But this shouldn't matter for the fares really.

jpatokal commented 10 years ago

What's actually happening under the hood is that it's asking Google for public transit directions between the two train stations, so it can figure out the distance. But because there's a direct bus from CQ to Bondi Jct, that's what Google suggests, so no train directions for you -- and that's why the error suggests a bus instead.

This isn't really fixable with the current implementation, although I have considered scraping Sydney Trains to get distances/fares for all the ~40k possible station-to-station combos and just dumping them in a giant table.

medoix commented 10 years ago

Might have to, are you logging how many people get the "Sorry, couldn't work out a sensible route between those two stations." i put in just train from St Marys to Central and get the same error. I cannot get trains to work from any station out west to the city.

medoix commented 10 years ago

Actually Blacktown is the furthest out i think that works.