nau-sidewalks/scripts/fetch_sidewalk_data.sh

8 lines
385 B
Bash
Raw Normal View History

2025-02-10 19:46:31 -06:00
#!/usr/bin/env nix-shell
#! nix-shell -i bash --pure
#! nix-shell -p bash curl cacert
# TODO: process out extraneous data
curl -s https://overpass-api.de/api/interpreter --data-urlencode 'data=[out:json];{{geocodeArea:Northern Arizona University}}->.searchArea;(way["highway"="footway"](area.searchArea);way["highway"="cycleway"](area.searchArea););out geom;' -o data/sidewalks.json