rinigus / pure-maps

Maps and navigation
https://rinigus.github.io/pure-maps/
GNU General Public License v3.0
243 stars 43 forks source link

Speed cameras alerts #672

Open sokolgeo opened 4 months ago

sokolgeo commented 4 months ago

This is to implement visual on-screen and voice prompt warnings for upcoming speed cameras when navigating.

Probably OsmAnd implementation could be cited for reference: https://osmand.net/docs/user/navigation/guidance/voice-navigation#speed-cameras

I believe the data is already there (in the OSM map) ?

rinigus commented 4 months ago

I guess such information is available somewhere, maybe even OSM. I never looked into it and wouldn't set as priority for myself. Note that there are legal aspects that have to be handled as well (see screenshot from OsmAnd in the given reference).

sokolgeo commented 4 months ago

The information is actually already in the map, you just need to warn the user when approaching these points during car navigation: https://wiki.openstreetmap.org/wiki/Tag:highway%3Dspeed_camera

As long as this is disabled by default and the user is given a clear warning when enabling it, we are probably safe from a legal point of view. Something similar like OsmAnd asks for confirmation when enabling speedcam warnings: "In some countries or regions it is illegal to use speed camera warnings. You must make a decision based on the laws in your country. "

Does this bring some clarity to the issue?

rinigus commented 4 months ago

While information is there, it still needs to be processed and presented to the user. As for legal aspects, I agree. That sounds like a reasonable approach. In addition, Pure Maps has a framework for that as well in terms of handling licenses that user agreed to.