aboutsummaryrefslogtreecommitdiff
path: root/Taskfile.yml
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-12-22 11:36:23 +0100
committerAriel Costas Guerrero <ariel@costas.dev>2025-12-22 11:36:23 +0100
commit03998adf013b95ba3b4959cf643fa470537ef097 (patch)
tree331c4275f92842fd43d35076151dd149c3b6d82c /Taskfile.yml
parent2cfebde7ac892a6c984fe9318204f5f421af6407 (diff)
Add Git submodule for Renfe feeds and update configuration files
- Introduced a Git submodule for automatic downloading and patching of Renfe feeds. - Updated README.md to include instructions for initializing submodules. - Modified Taskfile.yml to streamline Renfe data downloading process. - Adjusted build-config.json to reference new Santiago feed. - Created otp-config.json to configure OTP features.
Diffstat (limited to 'Taskfile.yml')
-rw-r--r--Taskfile.yml43
1 files changed, 19 insertions, 24 deletions
diff --git a/Taskfile.yml b/Taskfile.yml
index 9f0c501..962d466 100644
--- a/Taskfile.yml
+++ b/Taskfile.yml
@@ -1,3 +1,5 @@
+$schema: https://taskfile.dev/schema.json
+
version: '3'
vars:
@@ -22,27 +24,10 @@ tasks:
download-renfe:
desc: "Download Renfe GTFS data (NAP MITRAMS)"
- silent: true
- cmds:
- - "curl -H \"ApiKey: {{.NAP_API_KEY}}\" -sLo feeds/renfe.zip https://nap.transportes.gob.es/api/Fichero/download/1098"
-
- download-feve:
- desc: "Download Renfe FEVE GTFS data (NAP MITRAMS)"
- silent: true
- cmds:
- - "curl -H \"ApiKey: {{.NAP_API_KEY}}\" -sLo feeds/feve.zip https://nap.transportes.gob.es/api/Fichero/download/1131"
-
- download-cercanias:
- desc: "Download Renfe Cercanías GTFS data (NAP MITRAMS)"
- silent: true
cmds:
- - "curl -H \"ApiKey: {{.NAP_API_KEY}}\" -sLo feeds/cercanias.zip https://nap.transportes.gob.es/api/Fichero/download/1130"
-
- download-ourense:
- desc: "Download Ourense city GTFS data (NAP MITRAMS)"
- silent: true
- cmds:
- - "curl -H \"ApiKey: {{.NAP_API_KEY}}\" -sLo feeds/ourense.zip https://nap.transportes.gob.es/api/Fichero/download/1586"
+ - uv --directory build_renfe run ./build_static_feed.py {{.NAP_API_KEY}}
+ - cp build_renfe/gtfs_renfe_galicia_general*.zip feeds/renfe.zip
+ - cp build_renfe/gtfs_renfe_galicia_feve*.zip feeds/feve.zip
download-coruna:
desc: "Download A Coruña city GTFS data (NAP MITRAMS)"
@@ -61,16 +46,26 @@ tasks:
deps:
- download-xunta
- download-renfe
- - download-feve
- - download-cercanias
- - download-ourense
- download-coruna
- download-vitrasa
+ build-osm:
+ desc: "Build OSM data for OpenTripPlanner"
+ sources:
+ - galicia-latest.osm.pbf
+ cmds:
+ - java -Xmx4G -jar {{.OTP_JAR}} --buildStreet .
+
+ build-transit:
+ desc: "Build transit data for OpenTripPlanner"
+ cmds:
+ - java -Xmx4G -jar {{.OTP_JAR}} --loadStreet --save .
+
build:
desc: "Build OpenTripPlanner and save the graph for future runs"
cmds:
- - java -Xmx4G -jar {{.OTP_JAR}} --build . --save
+ - task: build-osm
+ - task: build-transit
run:
desc: "Run the OpenTripPlanner server using the saved graph from the build task"