• Home
  • About

GIScience News Blog

News of Heidelberg University’s GIScience Research Group.

Feed on
Posts
Comments
« Einführung in OpenStreetMap und humanitäres Mapping bei der AGIT 2020
Physische Erreichbarkeiten von Krankenhäusern in Subsahara Afrika - Analyse und Ergebnisse bei COVID-19 Symposium vorgestellt »

How to become ohsome part 6: Introducing the magical filter parameter

Jul 9th, 2020 by Fabian Kowatsch

it's magic!

We are back again with a fresh part of the How to become ohsome blog series. In case this 6th part of the series is your first one, or you have not heard from our awesome OpenStreetMap History Data Analytics Platform before (short form: ohsome platform), don’t worry. We’ve added some context, as well as links to other relevant blog posts at the end of this one.

Within the open source release 1.0 of the ohsome API, we’ve introduced a new parameter that is simply called filter. You might wonder now what is so magical about this parameter. Its syntax comes from the wizard used in Overpass Turbo, a well established and widely used tool within the OpenStreetMap community to query OSM data. But let’s get back to our new ohsome feature. This filter substitutes the former types, keys and values parameters and adds new functionalities on top of it. Here, we’ve prepared a couple of examples that should give you an idea of how it works and what you can do with it.

If you want to compute the amount of area that is covered with a forest, you usually need to consider two tags: landuse=forest as well as natural=wood. With any pre 1.0 version of the ohsome API, you would have to make two requests, one for each of these key-value combinations. Using this new magical parameter, you can combine both of them in one single request. The filter would then have the following syntax: (landuse=forest or natural=wood) and geometry:polygon. As you can see, the syntax is similar to SQL, where you can combine different tags with the and or the or keywords and use brackets to influence the precedence. The tags themself are given in the key=value syntax and an additional filter on the geometry uses geometry:geomType to be distinguishable from the tags. Click here for sending a test request using a bbox around the German city Dresden.

The second example that we want to show you is a little quality analysis and focuses on residential roads without a name tag. The filter syntax looks like that: type:way and highway=residential and name!=* and noname!=yes. With this filter, we get all way features that have the highway=residential tag, don’t have any name tag and also don’t have the noname=yes tag. Additionally, this example shows the usage of the OSM types filter, again using the colon instead of the equals sign to distinguish it from an OSM tag. We’ve prepared another example request using this filter.

You can find further examples and explanations directly on the filter subpage of our new documentation page. The code that performs the processing of the filter parameter has also been published as a standalone library, so this functionality can be easily included in other applications as well. Also checkout our recently published post about the new documentation page of the ohsome API. As always, make sure to hit the like button and subscribe to our.. oh wait.. wrong platform. Anyway, if you want to know more about our ohsome framework, don’t hesitate to reach out to us via info(at)heigit.org or contact any member of our team directly. Stay ohsome!

Context: the aim of the ohsome OpenStreetMap History Data Analytics Platform is to make OpenStreetMap’s full-history data more easily accessible for various kinds of OSM data analytics tasks, such as data quality analysis, on a global scale. The ohsome API is one of its components, providing free and easy access to some of the functionalities of the ohsome platform via HTTP requests. Some intro can be found here:

  • ohsome general idea
  • ohsome general architecture
  • the whole “how to become ohsome” tutorials series

Tags: become-ohsome, Big Spatial Data, data quality, heigit, ohsome, Open Source, OpenStreetMap, OSM History Analytics

Posted in OSM, Services, Software

Comments are closed.

  • About

    GIScience News Blog
    News of Heidelberg University’s GIScience Research Group.
    There are 1,643 Posts and 0 Comments so far.

  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.org
  • Recent Posts

    • Social-Media-Daten für eine bessere Routenplanung freier Navigationsdienste
    • Understanding spatiotemporal trip purposes of urban micro-mobility from the lens of dockless e-scooter sharing
    • Audiobeitrag: Das Heidelberg Institute for Geoinformation Technology (HeiGIT) im Campus Radio
    • 3DGeo contributions to ISPRS Congress 2022 now online
    • Recent feature additions to Ohsome Quality analysT
  • Tags

    3D 3DGEO Big Spatial Data CAP4Access Citizen Science Climate Change Conference crisis mapping Crowdsourcing data quality deep learning disaster DisasterMapping GeoNet.MRN GIScience heigit HOT humanitarian humanitarian mapping Humanitarian OpenStreetMap team intrinsic quality analysis landuse laser scanning Lidar machine-learning Mapathon MapSwipe MissingMaps Missing Maps ohsome ohsome example Open data openrouteservice OpenStreetMap OSM OSM History Analytics Quality quality analysis remote sensing routing social media spatial analysis Teaching VGI Workshop
  • Archives

    • June 2022
    • May 2022
    • April 2022
    • March 2022
    • February 2022
    • January 2022
    • December 2021
    • November 2021
    • October 2021
    • September 2021
    • August 2021
    • July 2021
    • June 2021
    • May 2021
    • April 2021
    • March 2021
    • February 2021
    • January 2021
    • December 2020
    • November 2020
    • October 2020
    • September 2020
    • August 2020
    • July 2020
    • June 2020
    • May 2020
    • April 2020
    • March 2020
    • February 2020
    • January 2020
    • December 2019
    • November 2019
    • October 2019
    • September 2019
    • August 2019
    • July 2019
    • June 2019
    • May 2019
    • April 2019
    • March 2019
    • February 2019
    • January 2019
    • December 2018
    • November 2018
    • October 2018
    • September 2018
    • August 2018
    • July 2018
    • June 2018
    • May 2018
    • April 2018
    • March 2018
    • February 2018
    • January 2018
    • December 2017
    • November 2017
    • October 2017
    • September 2017
    • August 2017
    • July 2017
    • June 2017
    • May 2017
    • April 2017
    • March 2017
    • February 2017
    • January 2017
    • December 2016
    • November 2016
    • October 2016
    • September 2016
    • August 2016
    • July 2016
    • June 2016
    • May 2016
    • April 2016
    • March 2016
    • February 2016
    • January 2016
    • December 2015
    • November 2015
    • October 2015
    • September 2015
    • August 2015
    • July 2015
    • June 2015
    • May 2015
    • April 2015
    • March 2015
    • February 2015
    • January 2015
    • December 2014
    • November 2014
    • October 2014
    • September 2014
    • August 2014
    • July 2014
    • June 2014
    • May 2014
    • April 2014
    • March 2014
    • February 2014
    • January 2014
    • December 2013
    • November 2013
    • October 2013
    • September 2013
    • August 2013
    • July 2013
    • June 2013
    • May 2013
    • April 2013
  •  

    July 2020
    M T W T F S S
    « Jun   Aug »
     12345
    6789101112
    13141516171819
    20212223242526
    2728293031  
  • Recent Comments

    GIScience News Blog CC by-nc-sa Some Rights Reserved.

    Free WordPress Themes | Fresh WordPress Themes