Skip to content

Rework topics #884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

## Current Main

### Bug Fixes

- topics: rework road topics ([#878], [#880])
- topics: remove covid19 related tags from topics ([#882])


[#878]: https://github.com/GIScience/ohsome-quality-api/issues/878
[#880]: https://github.com/GIScience/ohsome-quality-api/issues/880
[#882]: https://github.com/GIScience/ohsome-quality-api/issues/882


## Release 1.8.3

### New Features
Expand Down
38 changes: 22 additions & 16 deletions ohsome_quality_api/topics/presets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### CORE TOPICS ###

building-count:
name: Building Count
name: Buildings (count)
description: >-
All buildings as defined by all objects tagged with 'building=*'.
endpoint: elements
Expand All @@ -21,7 +21,7 @@ building-count:
- bkg

building-area:
name: Building Area
name: Buildings (area)
description: >-
All buildings as defined by all objects tagged with 'building=*'.
endpoint: elements
Expand All @@ -34,18 +34,19 @@ building-area:
- core
- bkg

roads:
name: Roads
roads-all-highways:
name: Roads (all highways)
description: >-
The road network defined by all objects which hold the principal tags for
the road network and their link roads as defined in the OSM Wiki`:`
https://wiki.openstreetmap.org/wiki/Key:highway
All linear OSM features holding the prinicipal tag `highway=*`. The
road network defined by all objects which hold the principal tags
for the road network and their link roads as defined in the OSM
Wiki`:` https://wiki.openstreetmap.org/wiki/Key:highway
endpoint: elements
aggregation_type: length
filter: >-
highway=* and type:way
highway=* and geometry:line
ratio_filter: >-
highway=* and type:way and name=*
highway=* and geometry:line and name=*
source: https://wiki.openstreetmap.org/wiki/Key:highway
indicators:
- mapping-saturation
Expand All @@ -56,13 +57,19 @@ roads:
- core
- bkg

car-roads:
name: Classified Roads
description: roads excluding simple forest paths and other small/ unclassified roads
roads:
name: Roads (cars)
description: >-
All linear OSM features referring to a road usable by vehicles
(i.e. cars). The road network defined by all objects which hold
the principal tags for the road network and their link roads as
defined in the OSM Wiki`:`
https://wiki.openstreetmap.org/wiki/Highways#Roads_and_tracks
endpoint: elements
aggregation_type: length
filter: >-
highway in (motorway, trunk, primary, secondary, tertiary, residential, service, living_street, trunk_link, motorway_link, primary_link, secondary_link, tertiary_link) and type:way
highway in (motorway, trunk, primary, secondary, tertiary, residential, service, living_street, trunk_link, motorway_link, primary_link, secondary_link, tertiary_link, unclassified) and geometry:line
source: https://wiki.openstreetmap.org/wiki/Highways#Roads_and_tracks
indicators:
- mapping-saturation
- attribute-completeness
Expand Down Expand Up @@ -140,7 +147,6 @@ poi:
or (tourism in (alpine_hut, apartment, aquarium, artwork, attraction, camp_site, caravan_site,
chalet, gallery, museum, guest_house, hostel, hotel, motel, picnic_site, theme_park, viewpoint,
wilderness_hut, zoo))
or (vaccination = covid19)
indicators:
- mapping-saturation
- currentness
Expand All @@ -166,7 +172,7 @@ schools:
- unicef

kindergarten:
name: Kindergarten
name: Kindergartens
description: Count of kindergarten.
endpoint: elements
aggregation_type: count
Expand Down Expand Up @@ -315,7 +321,7 @@ parks:
- bkg

sports-pitch:
name: Sports Pitch
name: Sports Pitches
description: Count of sports pitches (an area designed for practising a particular sport)
endpoint: elements
aggregation_type: count
Expand Down
2 changes: 1 addition & 1 deletion tests/integrationtests/api/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def response_template():
def metadata_topic_building_count():
return {
"building-count": {
"name": "Building Count",
"name": "Buildings (count)",
"description": "All buildings as defined by all objects tagged with 'building=*'.", # noqa
"endpoint": "elements",
"aggregationType": "count",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
39.8% of all "building count" features (all: 30263 elements) in your area of interest have the selected additional attribute height of buildings (matched: 12059 elements).
39.8% of all "buildings (count)" features (all: 30263 elements) in your area of interest have the selected additional attribute height of buildings (matched: 12059 elements).
Original file line number Diff line number Diff line change
@@ -1 +1 @@
39.8% of all "building count" features (all: 30263 elements) in your area of interest have the selected additional attribute Height (matched: 12059 elements).
39.8% of all "buildings (count)" features (all: 30263 elements) in your area of interest have the selected additional attribute Height (matched: 12059 elements).
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.0% of all "building count" features (all: 10 elements) in your area of interest have the selected additional attribute Height (matched: 2 elements).
20.0% of all "buildings (count)" features (all: 10 elements) in your area of interest have the selected additional attribute Height (matched: 2 elements).
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.0% of all "building count" features (all: 10 elements) in your area of interest have the selected additional attributes height of buildings, house number, street address (matched: 2 elements).
20.0% of all "buildings (count)" features (all: 10 elements) in your area of interest have the selected additional attributes height of buildings, house number, street address (matched: 2 elements).
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.0% of all "building count" features (all: 10 elements) in your area of interest have the selected additional attribute height of buildings (matched: 2 elements).
20.0% of all "buildings (count)" features (all: 10 elements) in your area of interest have the selected additional attribute height of buildings (matched: 2 elements).

Large diffs are not rendered by default.