HSLdevcom / digitransit-ui

Digitransit UI ("Reittiopas.fi")

Home Page:https://www.reittiopas.fi/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can I configure an OTP server ?

fabrice1236 opened this issue · 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 ?

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

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

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

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.