From OpenStreetMap Wiki
Jump to navigation Jump to search

Type of sensor

How about some key for what kind of sensor is used?

  • sensor=radar
  • sensor=<in-ground-loops-magnetometer-or-what-it-is-called> (most common for speed cameras in Norway)
  • sensor=laser
  • sensor=ocr (two cameras some distance apart, average speed is calculated from distance/passing times. Some of these on trial in Norway)
  • sensor=manual Place where there are frequent manual controls

15:22, 7. Jul. 2010 Gorm

How to map a speed trap taking pictures from behind? The proposal reads that the device should be in front of the "from" node. But this page implies that the "from" node should be in front of the device: "if there is no sign, estimate a sensible distance where a driver would need to be warned of the object if driving with allowed speed." What should I do? Spartanischer Esel 23:41, 12 August 2010 (BST)

Then the "from" node is always in front of the device when you approach. But the device is not showing you it's front. There is no problem at all to tag this. Lulu-Ann
So how does the tagging reflect the difference between a device which is taking pictures from the front and one which is taking pictures from the back? I didn't get it yet, sorry. Spartanischer Esel 23:17, 18 August 2010 (BST)
Do we need a "direction=approach/depart/rectangular" ? Actually when I am warned early enough, I don't care from which direction the picture is taken. Lulu-Ann
Well, drivers of vehicles which only have one license plate might care. --Spartanischer Esel 22:20, 3 September 2010 (BST)
This is not a means to encourage motorcycle drivers to speed. Lulu-Ann
It's not a means to encourage anybody to anything. It's only about correct and complete tagging. Tagging a bank shouldn't encourage anybody to rob it, either. Spartanischer Esel 00:05, 19 September 2010 (BST)
I agree with Lulu-Ann. Why should you care, unless you wish to know whether you can ignore the enforcement? --SimoneSVC 10:30, 29 October 2012 (UTC)

Bus Lane Cameras

In Australia we have bus-only lanes, where it is illegal for other vehicles to travel in that lane. Some have enforcement cameras. That is, if you travel in this lane in a vehicle other than a bus, the camera takes a picture of your license plate, and you get fined. Is there a value for enforcement= that would cover this? --Ebenezer 03:08, 20 June 2011 (BST)

A simple solution would be just to add enforcement=bus_lane or more general vehicle_type.
I am about to map the entrance of a pay-zone (road toll), there are cameras mounted on portals (gantry) above the road and when you pass your registration plate is identified and three weeks later you will be sent a bill. I am thinking enforcement=toll / fee / passage or something like that./Johan Jönsson 16:56, 2 August 2012 (BST)


I would like to clear up whether the use of enforcement=maxspeed implies highway=speed_camera for the device node. If yes, then the device node should get rendered. If no, then I'm gonna add highway=speed_camera to device nodes I've added so far. --Erik Lundin 14:24, 26 June 2011 (BST)

No hidden implies so far is my guess. The node with the role of device should have it´s normal tags if there exist good alternatives. In this case highway=speed_camera would be appropriate./Johan Jönsson 16:56, 2 August 2012 (BST)
No, enforcement=maxspeed does not imply highway=speed_camera. Speeding can also be measured by other means than one radar camera, e.g. by 2 cams at start and end of a track, or by two scales. --Lulu-Ann (talk) 10:56, 2 October 2013 (UTC)

Bit confused...

These articles on how to map speed cameras and red light cameras a bit confusing. Are you meant to put a separate node for the speed camera and then put the 'enforcement' relation to the camera and the road that is monitored? How do you map red light cameras? David. S 04:22, 11 July 2012 (BST)

The node with the role of device should have it´s normal tags. I would use man_made=surveillance for the camera.

Since the relation will explain that it is a enforcement=traffic_signals you do not need to invent some new value for [[Proposed features/Extended tags for Key:Surveillance surveillance=}} but you can do it anyway./Johan Jönsson 16:56, 2 August 2012 (BST)

Enforcement of access restrictions

I wish to use the relation to map cameras used to check access permits in a limited traffic zone. For this reason, I propose adding the enforcement=access value to the ones listed in the article. In that case, "to" should be a node on the way with the access restriction, and should mark the point you must not trespass if you're not authorized.

I would advice against tagging the access in the relation. It is probably better to tag the access restriction on the way (so that it is available also to consumers that don't know about this relation), and to use the relation only to indicate that there is some access restriction and that it is enforced. This also prevents the risk that the relation and the guarded way are tagged with different access restrictions (possibly because of bad maintenance). --SimoneSVC 10:26, 29 October 2012 (UTC)

"except in countries that forbid mapping traffic enforcement installations"

China forbids mapping, period, except by authorized people. Why is this tag different? --NE2 18:00, 2 November 2012 (UTC)

Did anyone say anything about this tag and China? --Lulu-Ann (talk) 10:57, 2 October 2013 (UTC)

Roles for Average Speed Enforcement

The from and to roles are a not particularly useful for an average speed installation. see for instance this one. More extensive installations in Nottingham, for instance along Arnold Road, have several roads entering and leaving the enforcement area and thus a potentially m*n range of from & to. I think it is clear that the ways need to be included in the relation, for now I am leaving them without a role. SK53 (talk) 06:56, 11 June 2013 (UTC)

How shall we call that role? --Lulu-Ann (talk) 10:53, 2 October 2013 (UTC)

In Republic of Ireland we have a large number of zones where mobile speed camera vans can operate. The locations of these zones are published. Normally on a Sat Nav it would give a warning on entering the zone, and continue to warn if over the speed limit of the zone. The location of the zones are here: We are mapping all the zones and confirming any speed limits in the area. What tag should we use for this type of speed enforcement? --zg3409 (talk) 19:00, 30 April 2014 (UTC)

I will add a clarification in the wiki that average speed sections may be defined by the from and to roles (two nodes) as an alternative to the section role (ways). Measurements are done at the start and end points of the section, so the system does not care how the driver gets from start to end. --NKA (talk) 07:58, 6 January 2022 (UTC)

Toll enforcement

Devices for enforcing toll collection, such as surveillance bridges over motorways that do not trigger the collection itself, should be considered as enforcement=toll.

Mautbrücke01 2009-04-13.jpg


There are a small number (about 28 if I remember correctly) maxweight weighing stations in Brazil, with probably highest density in the state of Espírito Santo. I was for a long time pondering on how to do this, and ended up with a solutions as done in this relation, a weighing station in Rio Novo do Sul, this particular station is mostly out of service but the principle is the same with the other ones I have mapped. Before the station is an obligatory turn_right restrictions for HGV only, than they enter a slow lane (20km/h), leading up to the device, after the device is a traffic light as force, where if weight is accepted they are let back on the highway, or if not, they have to turn back, either to pay a fine for overload, or be re-weight if reading was unclear (generally due to too high speed on the device). --Skippern (talk) 02:46, 23 July 2015 (UTC)

tagging the actual camera

I understand that the role "from" is meant to determine the direction of the enforcement and that the role "device" is meant for the node to which the enforcement applies, e.g. in the case of the red light enforcement the actual crossing of the two street where the traffic light is located.

But how do I tag the actual place where the camera is located? Do I use man_made=surveillance for that and add it to the relation? If yes with what role? --ALE! (talk) 15:17, 30 September 2016 (UTC)

The enforcement applies from the 'from' role to the 'to' role. The 'device' role should be applied on the camera or other equipment applying the enforcement. --Gileri (talk) 16:50, 30 September 2016 (UTC)

Merge with proposal

Proposal page[1] for this relation contains a lot of good information that would beneficial to bring this page, specifically:

  • more verbose description of relations
  • diagrams and instructions how to map
  • list of countries with usage restrictions

HubMiner (talk) 09:31, 1 May 2018

Some care would be required. Often proposal pages contain ideas that are not adopted as actual mapping practice, thus it would have to be checked case by case. The list of countries is not related to using the relation, this is about mapping/using device warnings in general. I'd consider it better to have a separate page for this purpose. --Polarbear w (talk) 20:28, 1 May 2018 (UTC)

Distance of 'from' node

The advice where to place the 'from' node is a bit vague, in particular the part "estimate a sensible distance where a driver would need to be warned" is very subjective.

A stationary speed enforcement device is typically triggered by a double induction loop in the asphalt of the road, very few meters from the camera. Thus this is the objective geographical point from where your speed is measured.

Any subjective wishes by the speeding driver at what distance she prefers to be warned in advance, are a matter of the rendering device evaluating the objective geographical situation. The user might ask the developer of their favourite software to implement an adjustable setting for the distance value of advance warning, but the mapping should be based on the objective geographical facts. --Polarbear w (talk) 17:59, 23 April 2019 (UTC)

via a way

I think `via` should be a supported role, as you can see exactly where the enforcement covers. With only `from` and `to` it can be ambiguous if the way diverges then merges in between the two nodes.

mobile phone detection

Looking for a good way to map cameras which detect illegal mobile phone use while driving, eg I was thinking enforcement=mobile_phone. --Aharvey (talk) 13:28, 6 September 2020 (UTC)

enforcement=traffic_signals on highway=traffic_signals node

Using a relation for a red light camera seems overkill when you could just add enforcement=traffic_signals on the intersection node where the highway=traffic_signals are. --Aharvey (talk) 11:55, 21 September 2020 (UTC)

Do you have a link to real osm example object by chance? --MalgiK (talk) 14:45, 21 September 2020 (UTC)
This was raised in Talk:Key:enforcement#Unintended usage. Honestly, if you thinking in this direction, you may even consider adding enforcement=* to any enforced road sections. This relation would only be relating the enforcement device to them and dealing with more complicated cases. Proposed_features/Traffic_enforcement was named at Talk:Proposed_features/Relation:enforcement#Far_too_complicated? ---- Kovposch (talk) 07:29, 22 September 2020 (UTC)