FOSS4G 2019 Lab Example 2: Looking at the attributive completeness of the road network of Bucharest and Vienna
Full lab presentation: 2019-08-28_foss4g_lab.pdf
Software Requirements:
- ohsome API: https://api.ohsome.org
- curl: https://curl.haxx.se/download.html
Estimated Time:
- 5 minutes (variable depending on size of data)
In this example, the road network of two cities are compared with each other using two measures: the total length of the roads and the length of the roads having the maxspeed tag. To send the request and store the response, we use cURL via the command line. The spatial boundaries can be downloaded via https://wambachers-osm.website/boundaries/ and then combined locally.
combined GeoJSON for Vienna and Bucharest:
boundary.GeoJson
cURL command:
curl --data-urlencode "bpolys@boundary.GeoJson" -d "@params.txt" -X POST https://api.ohsome.org/v1/elements/length/ratio/groupBy/boundary -o response.json
params.txt file content:
types=way&types2=way&keys=highway&keys2=highway,maxspeed&time=2010-01-01/2019-07-01/P6M
Link to example 1: https://gitlab.gistools.geog.uni-heidelberg.de/snippets/23
test