Suggestions for ideal starter config?

90 views
Skip to first unread message

Linus

unread,
Apr 27, 2022, 4:16:41 PM4/27/22
to OpenTripPlanner Users
I just started using OTP and I'm trying for 2 weeks now to create a working route and build config and I've failed miserably! I would be so grateful if anyone could help me, even if it's just one aspect or whatever...

I'm trying to create a config that works for transit and the possible connections with other modes of transportation. In my current configs it either doesn't use a mode of transportation or it just shows me that there's no available routing even though I know that there are easy routes one can use.

I just need a bit of guidance, because I have no idea what OTP wants from me to properly route using the different Transit options.

Thx sm!

Leonard Ehrenfried

unread,
Apr 28, 2022, 4:08:17 AM4/28/22
to Linus, OpenTripPlanner Users
I maintain an OTP deployment in the Stuttgart region. You can see some routes here: https://tinyurl.com/y2prw9he


There are more config examples by large organisations in the OTP main repo: https://github.com/opentripplanner/OpenTripPlanner/tree/dev-2.x/docs/examples

Hope this helps.

--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.

t2g...@gmail.com

unread,
May 7, 2022, 8:22:44 PM5/7/22
to OpenTripPlanner Users
I would start by commenting out everything - zero config. Then turning on the OTPFeatures one by one, then add config for the routing defaults. Testing the router for each step you do.The default values (no config) are supposed to work well. Here is an example I set up for the danish GTFS data, a few weeks ago:

otp-config.json:
{
  "otpFeatures": {
    "ActuatorAPI": true,
    "SandboxAPITransmodelApi": true,
    "FlexRouting": true,
    "FloatingBike": true,
    "OptimizeTransfers": false,
    "TransferConstraints": true,
    "ReportApi" : true
  }
}


build-config.json:
{
  "dataImportReport": true,
  "storage" : {
    "streetGraph": "streetGraph-${otp.serialization.version.id}.obj",
    "graph": "graph-${otp.serialization.version.id}.obj",
    "buildReportDir": "report"
  }
}


I did not provide a  router-config.json at all. You can turn off the APIs you do not need - the REST api used by the Debug client is not configurable, it is always enabled. You may also turn off the "OptimizeTransfers" (only improving the transfer point between to trips in found paths. Turning off "TransferConstraints" is also sometimes helpful - only relay on OSM data for transfers.


Thomas
Reply all
Reply to author
Forward
0 new messages