Closed vchernetsky closed 9 years ago
How does it work in CarFreeAtoZ then?
On Saturday, May 23, 2015, Victor Chernetsky notifications@github.com wrote:
GTFS seem to have price of the transit data. Perhaps OTP does not provide this info as part of "profile" route calculation?
[image: uploads/7007f713-55d8-4563-95bf-56b97608c4cb/Screen Shot 2015-05-23 at 11.58.42 AM.png] https://camo.githubusercontent.com/59e4926a3f81492d4c091284fcfdfe1a625ddc73/68747470733a2f2f73332d75732d776573742d322e616d617a6f6e6177732e636f6d2f70726f642e6875626f6172642e636f6d2f75706c6f61647325324637303037663731332d353564382d343536332d393562662d35366239373630386334636225324653637265656e2b53686f742b323031352d30352d32332b61742b31312e35382e34322b414d2e706e67
— Reply to this email directly or view it on GitHub https://github.com/amigocloud/modeify/issues/25.
Ragi Burhum
+1 (415) 935-1447 ragi@amigocloud.com linkedin.com/in/rburhum
Like this: CarFreeAtoZ OTP /profile response- "fares": [ { "type": "METRO_RAIL", "low": 2.3, "peak": 2.9, "senior": 1.45, "transferReduction": false } ]
VTA2 OTP profile responce- "fares": [ null ]
OTP does not use GTFS fares. In fact Washington DC and VA GTFS don't have fare_attributes.txt files in them at all.
OTP uses these hard coded csv files to have fare prices: src/main/resources/org/opentripplanner/profile/fares/
But the original OTP /plan API seems to use GTFS fare info:
This is the snip of the reply of this query:
"fare": { "fare": { "regular": { "currency": { "symbol": "$", "currency": "USD", "currencyCode": "USD", "defaultFractionDigits": 2 }, "cents": 200 } }
It becomes more and more obvious that Conveyal just did a quick hack of OTP. We need to port it to use original /plan API.
GTFS seem to have price of the transit data. Perhaps OTP does not provide this info as part of "profile" route calculation?