Skip to content
Snippets Groups Projects

FOSS4G 2019 Lab Example 2: Looking at the attributive completeness of the road network of Bucharest and Vienna

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Fabian Kowatsch


    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/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

    Edited
    snippetfile1.txt 4 B
    test
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment