Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I configure an OTP server ? #4752

Open
fabrice1236 opened this issue Feb 15, 2023 · 3 comments
Open

How can I configure an OTP server ? #4752

fabrice1236 opened this issue Feb 15, 2023 · 3 comments

Comments

@fabrice1236
Copy link

fabrice1236 commented Feb 15, 2023

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 ?

@vesameskanen
Copy link
Member

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

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

@fabrice1236
Copy link
Author

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

@optionsome
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants