You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry for the late response and lack of documentation for properly configuring these things. We use https://github.com/HSLdevcom/digitransit-proxy inside our environment to cache responses from external sources such as https://helsinki-fi.smoove.pro/api-public/stations. However, if you want to be able to fetch the data about helsinki/espoo citybikes, you can edit the router-config.json found in https://api.digitransit.fi/routing-data/v2/graph-hsl-.zip and host the zip yourself (keep the name of the zip as it is) and just change the ROUTER_DATA_CONTAINER_URL point to where you have the zip hosted. In the router-config.json you can just replace the bikerental URL with https://helsinki-fi.smoove.pro/api-public/stations. However, you might get similar errors from other sources now which can't all be circumvented because the proxy adds required authentication headers but you can just remove those from router-config.json which you don't need or you cant access without giving auth credentials.
Another thing, you might have to allocate slightly more memory for java (Xmx7g should be enough and you might get away with less than that). Also, you should use hsldevcom/opentripplanner:prod if you want to use the production data found in api.digitransit.fi. Alternatively, you can fetch the data from dev-api.digitransit.fi and keep using the no-tag docker image which defaults to latest tag, which we use in our development environment.
When I try to run the docker image I get the following:
Error reading bike rental feed from http://digitransit-proxy:8080/out/helsinki-fi.smoove.pro/api-public/stations
java.net.UnknownHostException: digitransit-proxy
Steps to reproduce the problem
docker run --rm --name otp-hsl -p 9080:8080 -e ROUTER_NAME=hsl -e JAVA_OPTS=-Xmx5g -e ROUTER_DATA_CONTAINER_URL=https://api.digitransit.fi/routing-data/v2/hsl hsldevcom/opentripplanner
The text was updated successfully, but these errors were encountered: