From 03c023b726c00f88b4ba4c85f5e657b73c17b074 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 7 Apr 2024 20:16:33 +0200 Subject: home: funny jq for geojson → gtfs shapes.txt conversion --- home/home.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'home') diff --git a/home/home.nix b/home/home.nix index 23399d1..1e49983 100644 --- a/home/home.nix +++ b/home/home.nix @@ -103,6 +103,7 @@ wormhole = "wormhole-rs"; noms = "curl https://www.bahn.de/service/zug/db_lounge -s | htmlq --attribute href a | grep Speisen | xargs curl -s | pdftotext - /dev/stdout | less"; gosh = "rlwrap gosh"; + geojson2gtfs = ''jq -r ".features[0].geometry.coordinates | to_entries | map([.value[0], .value[1], .key])[] | @csv"''; }; functions.fetchpdf.body = '' set url $argv[1] -- cgit v1.2.3