Skip to content

Alert about "nearby speed camera" devices, even though they are not "properly mapped" #19501

Description

@Max1234-Ita

Describe the idea (required)

I'm using OsmAnd since a long-time (12 years or so), and over this time I could interact with many users by providing some help or exchanging opinions.

One of the complaints I've heard most frequently is that OsmAnd "does not warn about speed cameras".

It does, of course, but not for all the devices present in the map; Apart from the lack of mapping, the other reason for speed cameras not being announced is that OsmAnd alerts about them only if they are "properly mapped" in OSM.

In OpenStreetMap, a Speed Camera is "properly mapped" if:

  • A relation of type enforcement exists, and the enforcement type is specified (i.e. 'maxspeed', 'average_speed', 'traffic_signals')
  • The relation contains one way having 'from' role;
  • The relation contains one way having 'to'
  • The relation contains a node with 'device' role; the node is usually (always, I guess) tagged as highway=speed_camera.

Unfortunately, there are in the map a lot of highway=speed_camera elements that do not belong to any enforcement relation: I guess that the main reason is because they have been added by inexperienced users or through mapping apps that do not fully support the creation of relations.

I made some query through the Overpass Wizard (https://overpass-turbo.eu):

  1. highway=speed_camera in Italy --> Got a GeoJSON file containing 4342 "highway": "speed_camera" elements;
  2. type=enforcement and (enforcement=maxspeed or enforcement=average_speed or enforcement=traffic_signals) in Italy --> The resulting GeoJSON contained 1929 elements marked with "role": "device"

By doing some maths: 4342 - 1929 = 2413 (!)
So, 2413 speed cameras (in Italy) are not properly mapped nor reported by OsmAnd (that's about 55.6%); I tried the same queries for France and the situation was quite better, having about 17% of SC not belonging to any relation (it's 800 elements over 4560, anyway)

So here's my proposal: why not improve speed camera detection by raising an alert also if a highway=speed_camera element is found within a certain range?

This would have 2 benefits:

  1. Extend the number of object recognized and announced by OsmAnd, improving the app usability, since it would be able to operate als in on-optimal situations.
  2. If the voice prompt and/or the icon used is different from the "standard" one, this might help experienced mappers recognizing the mapping problem and possibly have them to correct those issues.

As a "contra", speed camera announcements made like that might be a bit unreliable, due to the lesser precision of the "nearby" metod vs. the already implemented one (which is good and should remain in use, of course); this would not be worse than the behaviour of other navigation apps, however.

Tell us about the expected behaviour (required)

  • In addition to the usual speed camera alerts, a new Display/Voice one, i.e. "Nearby Speed Camera", should be issued if a highway=speed_camera element is found within a certain range/time from current position (i.e. 200 meters or 10 seconds)

  • In order to limit the number of false-positive cases, the issue should be raised if the approaching speed is similar to the current speed (i.e. at least 70% of it): this should avoid that, i.e. an announcement for traffic signals or urban speed limit is raised while driving along a motorway;

  • The new alert should NOT be raised if OsmAnd is in Navigation Mode (a route has been calculated AND the element belongs to an "enforcement" relation (-> already recognized by OsmAnd, no need to announce twice);

  • The new alert might be raised if OsmAnd is not nevigating, even if the element belongs to an "enforcement" relation (not sure if by current behaviour SCs are announce while not navigating);

  • The new voice prompt might be turned on/off by User preference in Configure profile -> Voice prompts menu, either linking it to the existing "Speed cameras" slider or adding a dedicated "Nearby speed cameras" option (best solution);

  • The new screen alert might be turned on/off by User preference in _Configure profile ->
    Screen alerts, either linking it to the existing "Speed cameras" slider or adding a dedicated "Nearby speed cameras" option (best solution)

Tell us about alternatives you've considered (required)

Currently, as a mapper, the only alternative is to hear some user complaining about a speed camera not being announced, go for a check in the map, find that it's not properly mapped (80% of the cases) and add the required enforcement relation.

Unfortunately, implementing a proper mapping requires some experience that not all users have, so in many cases the situation is not being corrected.

As a common user, a possible workaround is to set announcement of nearest POI and choose only speedcam as a POI during the navigation; this adds a level of complexity to the app usage, however.

Context (optional)

Any comment is welcome!
(maybe some user will add the Overpass query results for his/her Country)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Nice to HaveShould be fixed but there is no priority or no possibility to fix it within current horizon planning

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions