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

Opal same-mode transfers give different prices depending on order #6

Closed jpatokal closed 10 years ago

jpatokal commented 10 years ago

When I put the first option as a zone 3 and 2nd transfer as a zone 1, I get a different opal price ($36.80) to putting zone 1 in the first box and zone 3 in the 2nd box ($16.80)

http://www.reddit.com/r/sydney/comments/1yqycl/opal_or_not_tool_to_check_if_the_opal_card_will/cfn8tmr

jpatokal commented 10 years ago

Opal code was incorrectly merging same-mode transfers (bus-bus, ferry-ferry) without considering zones. Unlike MyMulti, Opal transfers are not 'free', but charge the combined distance.

Logic updated so that zones are summed, so eg. MyBus 1+MyBus 1 is now priced as Opal bus zone 2.