API, GeoJSON, CBOR Support

This commit is contained in:
randogoth 2025-02-27 10:33:19 +00:00
parent 08eca3e042
commit a9f98c80df
8 changed files with 113 additions and 40 deletions

View file

@ -4,8 +4,8 @@ extract input output:
download region output:
quackosm --geom-filter-geocode {{region}} --osm-extract-source Geofabrik --osm-tags-filter-file tags.json --compact --output {{output}}
convert input output:
python3 slice.py --input {{input}} --output {{output}}
convert input output export_flags='--parquet':
python3 slice.py --input {{input}} --output {{output}} {{export_flags}}
plot file:
#!/usr/bin/env bash
@ -26,3 +26,6 @@ lookup lat lon:
#!/usr/bin/env bash
lat=$(echo "{{lat}}" | tr ',' ' ')
python3 lookup.py $lat {{lon}}
serve:
uvicorn api:app --host 0.0.0.0 --port 8000 --reload