Opentripplanner

This commit is contained in:
Brieuc Dubois 2024-06-06 15:29:23 +02:00
parent bc3ecd846e
commit bc5e5d327d
4 changed files with 36 additions and 2 deletions

View File

@ -1,11 +1,22 @@
services: services:
opentripplanner: opentripplanner:
container_name: opentripplanner container_name: opentripplanner
image: docker.io/opentripplanner/opentripplanner:latest image: docker.io/opentripplanner/opentripplanner:2.5.0
command: --load --serve command: --load --serve
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- $DATA/opentripplanner:/var/opentripplanner:ro #- type: bind
# source: $DATA/opentripplanner/graph.obj
# target: /var/opentripplanner/graph.obj
#- type: bind
# source: $CONFIG/otp/otp-config.json
# target: /var/opentripplanner/otp-config.json,readonly
#- type: bind
# source: $CONFIG/otp/router-config.json
# target: /var/opentripplanner/router-config.json,readonly
- $DATA/opentripplanner/graph.obj:/var/opentripplanner/graph.obj
- $CONFIG/otp:/var/opentripplanner
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.otp.rule=Host(`maps.bhasher.com`)" - "traefik.http.routers.otp.rule=Host(`maps.bhasher.com`)"

0
bxl-shp/config/otp/graph.obj Executable file
View File

View File

@ -0,0 +1,5 @@
{
"otpFeatures": {
"FaresV2": true
}
}

View File

@ -0,0 +1,18 @@
{
"routingDefaults": {
"numItineraries": 12,
"walk": {
"speed": 1.7,
"reluctance": 1.5
},
"waitReluctance": 1.5
},
"updaters": [
{
"type": "stop-time-updater",
"frequency": "PT1M",
"url": "https://sncb-opendata.hafas.de/gtfs/realtime/c21ac6758dd25af84cca5b707f3cb3de",
"feedId": "1"
}
]
}