Hi all!
tldr: I'm calling the plan endpoint using v2.5.0 in Brown County to test the GTFS-Flex support, and it says "LOCATION_NOT_ACCESSIBLE". What did I miss 🤔?
Code & data used- the OTP otp-2.5.0-shaded.jar from:
https://repo1.maven.org/maven2/org/opentripplanner/otp/2.5.0/- the Trillium/Optibus GTFS-Flex for Brown County from:
https://data.trilliumtransit.com/gtfs/browncounty-mn-us/browncounty-mn-us--flex-v2.zip- for the OSM, I've used the protomaps export based on a bounding box here:
https://app.protomaps.com/show/c215e2b5-4289-4769-9911-b74039e0a1c0 - I add an `otp-config.json` containing: `{"otpFeatures": {"FlexRouting": true}}`
Command run (I use java version 21.0.3)
Then I build the graph with: java -Xmx2G -jar otp-2.5.0-shaded.jar --build --save .
Then I run OTP with: java -Xmx2G -jar otp-2.5.0-shaded.jar --load .
Then I query it using:
curl "
http://localhost:8080/otp/routers/default/plan?fromPlace=44.241691751649284,-94.97715135553186&toPlace=44.297066380978336,-94.72618791046239&time=12:00pm&date=2024-06-20&mode=TRANSIT,WALK,FLEX&maxWalkDistance=1000&arriveBy=false&wheelchair=false&locale=en"
Which is basically a trip for "in two days" (aka June 20th) at noon from Springfield to Sleepy Eye.
It tells me: "The location was found, but no stops could be found within the search radius."
Full answer is: {"requestParameters":{"date":"2024-06-20","mode":"TRANSIT,WALK,FLEX","arriveBy":"false","wheelchair":"false","fromPlace":"44.241691751649284,-94.97715135553186","toPlace":"44.297066380978336,-94.72618791046239","time":"12:00pm","maxWalkDistance":"1000","locale":"en"},"plan":{"date":1718902800000,"from":{"name":"Origin","lon":-94.9771514,"lat":44.2416918,"vertexType":"NORMAL"},"to":{"name":"Destination","lon":-94.7261879,"lat":44.2970664,"vertexType":"NORMAL"},"itineraries":[]},"error":{"id":470,"msg":"The location was found, but no stops could be found within the search radius.","message":"LOCATION_NOT_ACCESSIBLE","missing":["FROM_PLACE"]},"debugOutput":{"precalculationTime":125125,"directStreetRouterTime":6920625,"transitRouterTime":8209625,"filteringTime":256083,"renderingTime":149542,"totalTime":15774333,"transitRouterTimes":{"tripPatternFilterTime":4285000,"accessEgressTime":0,"raptorSearchTime":0,"itineraryCreationTime":0}},"elevationMetadata":{"ellipsoidToGeoidDifference":-28.212344839275588,"geoidElevation":false}}
Since the from & to are in the location `area_708` I would have expected that request to match the trip `t_5374945_b_77497_tn_0` which run from 08:00:00 to 17:00:00. All the times being in America/Chicago 🤔...
I'm unsure of the `mode=TRANSIT,WALK,FLEX` because the documentation says "FLEXIBLE" (here
https://docs.opentripplanner.org/en/v2.5.0/RoutingModes/?h=routing+mod). But when I try with FLEXIBLE it says
> Qualified mode is not valid: 'FLEXIBLE', details: No enum constant org.opentripplanner.api.parameter.ApiRequestMode.FLEXIBLE
If any of you have some idea that would be greatly helpful 🙏🙏🙏.
Thanks! 💙