This check flags features that contain a source:maxspeed
tag that is not constructed following the rules set in the
OSM wiki: Key:source:maxspeed.
- Way id:24358163 has the value
implicit
instead ofRO:urban
as expected for a default maxspeed on an urban road in Romania. - Way id:31362404 has a url instead of one of the following expected:
sign
,markings
or<country_code>:<context>
.
In Atlas, OSM elements are represented as Edges, Points, Lines, Nodes, Areas & Relations; in our case, we’re are looking at Points and Edges.
The check verifies that all the values for source:maxspeed
tags respect the following rules:
- =
sign
where the speed limit is defined by a numeric sign - =
markings
where the speed limit is defined by painted road markings - =
<country_code>:<context>
where the speed limit is defined by a particular context, for example urban/rural/motorway/etc., and no maxspeed is signposted
The following values can be configured based on country legislation:
country_denylist
- this expects a list of countries for which the check should not be run; for example UK does not follow the rules of this check;values
- a list of defined values besides the zone rule. Current possible options aresign
andmarkings
;context.values
- a set of possible values that the context can take in the<country_code>:<context>
rulecountry.exceptions
- list of exceptions that do not follow the ISO code format; for example,BE-VLG
is an accepted value because the region has it's own speed standard;
To learn more about the code, please look at the comments in the source code for the check:
SourceMaxspeedCheck