Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # multiple overpass-turbo queries that aim to list highway NAME dissemination in Italy
- # ref:ISTAT OSM tag is used, since it is a unique identifier for each italian municipality
- # ref:ISTAT code is a 6 digit; first can be 0|1; here a small range has been set 042-043
- NAME=Rosmini
- for i in {042..043}; do
- wget -O $i.lst 'http://overpass-api.de/api/interpreter?data=[out:csv(name,ways;false;",")][timeout:3600];area[admin_level=8]["ref:ISTAT"~"'$i'..."];foreach->.regio((way(area.regio)[highway][name~"'$NAME'"];);make count "ref:ISTAT" = regio.set(t[ "ref:ISTAT"]),name = regio.set(t["name"]),ways = count(ways);out;);'
- done
- cat *lst | grep -v ",0"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement