First complete backend
This commit is contained in:
parent
754a0c425c
commit
ee147fea3c
18 changed files with 949 additions and 178 deletions
|
|
@ -1,7 +1,16 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash --pure
|
||||
#! nix-shell -p bash curl cacert
|
||||
#! nix-shell -p bash curl cacert jq
|
||||
|
||||
# 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
|
||||
# curl -s https://overpass-api.de/api/interpreter --data-urlencode 'data=[out:json];area[name="Northern Arizona University"]->.searchArea;(way["highway"="footway"](area.searchArea);way["highway"="cycleway"](area.searchArea););out geom;' -o data/sidewalks.json
|
||||
curl -s "https://overpass-api.de/api/interpreter" --data '
|
||||
[out:json];
|
||||
area[name="Northern Arizona University"]->.searchArea;
|
||||
(
|
||||
way["highway"="footway"](area.searchArea);
|
||||
way["highway"="cycleway"](area.searchArea);
|
||||
);
|
||||
out geom;' \
|
||||
| jq '[ .elements[] | { OSMID: .id, Geometry: [ .geometry[] | [ .lat, .lon ] ], Tags: .tags } ]' > data/sidewalks.json
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue