digitransit-ui icon indicating copy to clipboard operation
digitransit-ui copied to clipboard

How can I configure an OTP server ?

Open fabrice1236 opened this issue 2 years ago • 3 comments

I'm new to digitransit and OTP, and I'm trying to integrate my own OTP server into digitransit. I tried to put my server URL into API_URL, but it tried to get finland data inside of it, which I don't have, is there a way to fix that ? And are there other settings I should also change ?

fabrice1236 avatar Feb 15 '23 17:02 fabrice1236

Environment variable OTP_URL defines the address of the OpenTripPlanner service. For example:

OTP_URL=http://localhost:9080/otp/routers/fabricesowndata/

vesameskanen avatar Feb 16 '23 07:02 vesameskanen

Do I also need to change the MAP_URL and GEOCODING_BASE_URL variables ?

fabrice1236 avatar Feb 16 '23 16:02 fabrice1236

Yes but depending on what type of a map and geocoding service you want to use, you might also need to edit the code to support those map and geocoding providers. We don't provide map or geocoding APIs that would cover areas outside of Finland unfortunately, so you need to find some alternatives or host your own.

optionsome avatar Feb 20 '23 08:02 optionsome