Skip to content

Commit

Permalink
Update motis config to allow for importing the map of europe
Browse files Browse the repository at this point in the history
  • Loading branch information
jbruechert committed Feb 20, 2024
1 parent 12dda1e commit 67e6b10
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions motis/config.ini.j2
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
# SPDX-License-Identifier: AGPL-3.0-or-later

{% if flavour != "import" %}
modules=address
#modules=address
modules=tiles
modules=osrm
modules=ppr
#modules=osrm
#modules=ppr
#modules=parking
{% endif %}
modules=nigiri
Expand All @@ -20,6 +20,7 @@ dataset.no_schedule=true
host=127.0.0.1

[import]
{% if coastline_file and flavour != "import" %}paths=coastline:{{ coastline_file }}{% endif %}
{% if pbf_file and flavour != "import" %}paths=osm:{{ pbf_file }}{% endif %}
{% for feed in gtfs_feeds %}paths=schedule-{{ feed.id }}:{{ feed.path }}
{% endfor %}
Expand All @@ -39,3 +40,4 @@ profile=/opt/motis/ppr-profiles/default.json

[tiles]
profile=/opt/motis/tiles-profiles/background.lua
{% if coastline_file %}import.use_coastline=true{% endif %}
2 changes: 2 additions & 0 deletions src/generate-motis-config.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

feed_dir = Path("feeds/")
osm_map = "berlin-latest.osm.pbf"
osm_coastline = "land-polygons-complete-4326.zip"

gtfs_feeds = []
gtfsrt_feeds = []
Expand Down Expand Up @@ -58,4 +59,5 @@
fo.write(template.render(gtfs_feeds=gtfs_feeds,
gtfsrt_feeds=gtfsrt_feeds,
pbf_file=osm_map,
coastline_file=osm_coastline,
flavour=flavour))

0 comments on commit 67e6b10

Please sign in to comment.