just lookup
This commit is contained in:
parent
f2931af8dd
commit
b3b097ca16
2 changed files with 18 additions and 2 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,3 @@
|
||||||
*.parquet
|
*.parquet
|
||||||
*.pbf
|
*.pbf
|
||||||
|
*.png
|
||||||
17
.justfile
17
.justfile
|
|
@ -10,4 +10,19 @@ convert input output:
|
||||||
plot file:
|
plot file:
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
stem=$(basename {{file}} .parquet)
|
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}}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue