diff --git a/motis/config.ini.j2 b/motis/config.ini.j2 index 904de6c0..5436649c 100644 --- a/motis/config.ini.j2 +++ b/motis/config.ini.j2 @@ -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 @@ -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 %} @@ -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 %} diff --git a/src/generate-motis-config.py b/src/generate-motis-config.py index aa2b1b27..c7ec52c4 100755 --- a/src/generate-motis-config.py +++ b/src/generate-motis-config.py @@ -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 = [] @@ -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))