In-class Exercise
Part 1: Getting Universities from OpenStreetMap
- Open Overpass Turbo and go to a relatively small urban area you're interested in.
- On the left replace any code with this:
[out:json][timeout:25]; ( node["amenity"="university"]({{bbox}}); way["amenity"="university"]({{bbox}}); relation["amenity"="university"]({{bbox}}); ); out body; >; out skel qt;
- Press Run and any matching features should be highlighted on the right.
- Press Export and download the features as a GeoJSON file.
- Upload the GeoJSON file to either Mapbox or Carto.
Part 2: Getting other data from OpenStreetMap
- Using either the Map Data layer on OpenStreetMap or the OpenStreetMap wiki, look for how something you're interested in is tagged.
- In Overpass Turbo, replace the tag in the previous example (
"amenity"="university"
) with the tag you found. For example, if you found shop=supermarket you would replace"amenity"="university"
with"shop"="supermarket"
. - Press Run to run the query.