diff options
author | stuebinm | 2024-04-07 20:16:33 +0200 |
---|---|---|
committer | stuebinm | 2024-04-07 20:16:33 +0200 |
commit | 03c023b726c00f88b4ba4c85f5e657b73c17b074 (patch) | |
tree | 06d82ebb9a20caa6f4fc1a73c05062fbe3dde194 | |
parent | a1a3e433eb9689d6e8d91750c7577a5b6ff32f26 (diff) |
home: funny jq for geojson → gtfs shapes.txt conversion
Diffstat (limited to '')
-rw-r--r-- | home/home.nix | 1 |
1 files changed, 1 insertions, 0 deletions
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] |