Public
Authored by Fabian Kowatsch

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:

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/v0.9/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

Edited
4 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment