just lookup

This commit is contained in:
randogoth 2025-02-26 14:22:22 +00:00
parent f2931af8dd
commit b3b097ca16
2 changed files with 18 additions and 2 deletions

3
.gitignore vendored
View file

@ -1,2 +1,3 @@
*.parquet
*.pbf
*.pbf
*.png

View file

@ -10,4 +10,19 @@ convert input output:
plot file:
#!/usr/bin/env bash
stem=$(basename {{file}} .parquet)
python3 plot.py -i {{file}} -o ${stem}.png
python3 plot.py -i {{file}} -o ${stem}.png
process file:
#!/usr/bin/env bash
stem=$(basename {{file}} .pbf)
echo "Extracting Data from OpenStreetMaps PBF"
quackosm {{file}} --osm-tags-filter-file tags.json --compact --output ${stem}.parquet
echo "Generating geohash parquet files"
python3 slice.py --input ${stem}.parquet --output geohash
echo "Cleaning up"
rm ${stem}.parquet
lookup lat lon:
#!/usr/bin/env bash
lat=$(echo "{{lat}}" | tr ',' ' ')
python3 lookup.py $lat {{lon}}