osmandapp / OsmAnd

OsmAnd
https://osmand.net
Other
4.71k stars 1.03k forks source link

Possibility of avoiding traffic jam? #6878

Open wehkah opened 5 years ago

wehkah commented 5 years ago

I don't know if it's possible for Osmand, but it would be an enormous relief, if it was possible to access traffic information databases, that include traffic jam, construction sites, road closings, etc, and include these information when calculation the routing.

Samanbaia commented 1 year ago

What do you think about the following solution? https://trafficpixel.tk/trafficSql/configOsmand.php

It is in German, but easy to implement thanks to s translator. Images are also available. https://trafficpixel.tk/trafficSql/anleitung/netziTrack.html

hermann-san commented 1 year ago

@Samanbaia Some thoughts from a user point of view, there are a lot of manual steps to configure data collections. That seems too much to me and I assume that many people will probably not have the discipline to start and stop data contribution manually, on a consistent basis. There should only be a one time Opt-in question for contributing to the database and things should work automatically when OSMand is opened and it should automatically stop when the trip ends. Traffic data should be available as a OSMand plug-in rather then a static map on a webpage. On the Webpage it should be a dynamic, state of the Art map. That static map doesn't work for me. I don't know how to use it.

Samanbaia commented 1 year ago

Actually, I implemented that on OSMAND's last version, it starts now when you switch on automatically in CAR's profile and stop when stops navigation or arrive to destination. So, it seems I answered the 1st part of your question. Then, I don't know what you mean by static map, but if you mean a browser map, obviously it is not working. But, here, the data are showed directly in OSMAND as an up-layer. It means that you don't rely on GOOGLE traffic information layer, but directly on OSMAND contributors, and it also means that these data are available to be implemented for a plugin, to integrate traffic. So, this solution is not a final solution, but could be something which is a beginning of solution. I am not a programmer, so it is easy for me to give instruction for others, but, if there is here a programmer, it should have to collect these data to create a plugin that would regulate the car deviation, according to the traffic. What this solution changes compared to all other solutions? It changes that-what was missing was the availability of the data to be worked on. Here, finally, the data are available. What do you think?

hermann-san commented 1 year ago

@Samanbaia I see. Then I missunderstood how it works. I've only seen that Traffic Map on https://trafficpixel.tk and thought that is it. I guess I have to try it out to further comment on it, but since I'm not a dev, it's probably for them to comment further on this.

mvglasow commented 1 year ago

@Samanbaia Looks still in its infancy, but is essentially a promising basis for a crowdsourced traffic service. The main issue I am seeing right now is that pulling into a rest area on a motorway may confuse the system: the point is close enough to the actual road to be ambiguous, and the low speed indicates a congestion. (Worse yet, if your car breaks down and you are on the shoulder, not actually blocking a lane.) If that measurement is at odds with others nearby, then maybe the server-side algorithms are smart enough to drop that measurement. If you are the only contributor in this area at this time, this may result in false congestion reports.

What might help is to implement a UI for this contribution function. A couple of years ago, I saw something like this from a commercial provider: the app would would provide a pop-up when traveling slower than the posted limit, asking the driver if they were in a traffic jam. Only if the driver answered yes would the information get posted.

Samanbaia commented 1 year ago

Looks still in its infancy, but is essentially a promising basis for a crowdsourced traffic service. The main issue I am seeing right now is that pulling into a rest area on a motorway may confuse the system: the point is close enough to the actual road to be ambiguous, and the low speed indicates a congestion. (Worse yet, if your car breaks down and you are on the shoulder, not actually blocking a lane.) If that measurement is at odds with others nearby, then maybe the server-side algorithms are smart enough to drop that measurement. If you are the only contributor in this area at this time, this may result in false congestion reports.

What might help is to implement a UI for this contribution function. A couple of years ago, I saw something like this from a commercial provider: the app would would provide a pop-up when traveling slower than the posted limit, asking the driver if they were in a traffic jam. Only if the driver answered yes would the information get posted.

The most important is to start from somewhere. The solution with a popup can be implemented eventually if the problem (of wrong information) shows up. I believe for now that we can implement the solution as it is – and looking for a contributor to develop something in OSMAND.

Who can that be?

Samanbaia commented 1 year ago

@Samanbaia I see. Then I missunderstood how it works. I've only seen that Traffic Map on https://trafficpixel.tk and thought that is it. I guess I have to try it out to further comment on it, but since I'm not a dev, it's probably for them to comment further on this.

As indicated, the 1st step is to implement it individually and them, to find someone who is intended to develop the plugin. Do you know someone willing to do or able to do it?

Samanbaia commented 1 year ago

Actually, I will tell you more : to make it works, the potential developer should just – from the very beginning – create the app that collect the data and show the result in the layer.

Based on that, them, a 3rd part of the app could be implemented to integrate the eventual results in the travel calculation.

mvglasow commented 1 year ago

The web app will also need some work. Based on what I am seeing, it looks very much in its infancy, and the source code shows some critical bugs. I’ve tried to contact the developer, let’s see what happens next.

scaidermern commented 1 year ago

@Samanbaia Interesting approach! Thanks for your effort.

Unfortunately online tracking leads to a huge battery consumption in OsmAnd 4.3.3. If you experience the same please comment on #16044.

Samanbaia commented 1 year ago

On special issue in 4.2.7

Le 23 décembre 2022 08:51:56 UTC, Alexander Heinlein @.***> a écrit :

@Samanbaia Interesting approach! Thanks for your effort.

Unfortunately online tracking leads to a huge battery consumption in OsmAnd 4.3.3. If you experience the same please comment on #16044.

hermann-san commented 1 year ago

a potentially useful link from xephos1one https://github.com/graphhopper/open-traffic-collection

gituser789 commented 1 year ago

i have seen that EV-Map in the foss-variant also includes traffic data, when installing the app from F-droid. https://github.com/ev-map/EVMap

mvglasow commented 1 year ago

The traffic layer in EVMap looks very much like it’s from Mapbox. See https://www.mapbox.com/traffic-data and https://docs.mapbox.com/data/traffic/guides/. Given that EVMap uses Mapbox tiles, and that the traffic tiles look the same as those in the Mapbox traffic demo, I highly suspect that the traffic tiles are from Mapbox.

According to the description, the data is available in machine-readable form, designed to be fed into navigation systems. Tile overlays for visualization on a map also seem to be available.

Unfortunately, the dataset appears to be non-free.

Dimitar5555 commented 1 year ago

There is also another free data source for EU countries - National Access Points (NAP). Government agencies use them to provide up to date information about road closures, traffic accidents, road works and road conditions. The links for the national portals are located at https://www.openmobility.be/NAPs. The legal details are defined in Directive 2010/40/EU.

Here is the meaning of each "action":

(a) temporary slippery road;
(b) animal, people, obstacles, debris on the road;
(c) unprotected accident area;
(d) short-term road works;
(e) reduced visibility;
(f) wrong-way driver;
(g) unmanaged blockage of a road;
(h) exceptional weather condition
tareefdev commented 2 months ago

This link may be useful too, Construction sites and roadblocks in Berlin https://viz.berlin.de/en/traffic-in-berlin/construction-sites-and-roadblocks/

TobiPeterG commented 1 month ago

I've created an initial README summarizing discussions o nthe organic maps side. https://github.com/TobiPeterG/OSMTraffic

Please have a look and check if the points are valid and if I should change or add something :)

mvglasow commented 1 month ago

Looks great. I currently can’t contribute much, other than sharing my own experience, due to lack of personal time. How would you like to receive comments/extensions, especially points to be discussed? As issues in your project? Or some other form?

TobiPeterG commented 1 month ago

Looks great. I currently can’t contribute much, other than sharing my own experience, due to lack of personal time. How would you like to receive comments/extensions, especially points to be discussed? As issues in your project? Or some other form?

Thanks :)

Well it depends If it's something general about the whole endeavor, an issue in the README project would probably be the right place, if it's about the server itself, an issue in the server repo seems fitting :)

Samanbaia commented 1 month ago

Here is the French web site: https://www.bison-fute.gouv.fr/maintenant,langen.html

If you want, i can get inform if possible to have the information from source.

Have a look and let me know.

TobiPeterG commented 1 month ago

Here is the French web site: https://www.bison-fute.gouv.fr/maintenant,langen.html

If you want, i can get inform if possible to have the information from source.

Have a look and let me know.

Hey, sure :) Feel free to open an issue in the server repo and share the info you have :) It would be great if you could find as many information as possible :) Every contribution is welcome :)

Samanbaia commented 1 month ago

I wrote to them and we have to cross the finger (really strongly). if you want, you can register to the service and receive the very same information by email in realtime: I did it, but you need to have a dedicated email, as it covers all the french territory and send all the information (based on a filter solution). Registration is simple and doesn't need a password. Received information correspond to the email as follows: Subject:

A450 (69) Bouchon CLOS

Text:

Bison Futé communique : FIN de bouchon A450, de Lyon vers Saint-Étienne (sens est-ouest) entre les PR 5 et 7+801 (sur 2,8 km) département 69 (Rhône) de Saint-Genis-Laval à Brignais Sur toutes les voies

Bison Futé est à votre disposition 24 h / 24 :

sur internet : https://www.bison-fute.gouv.fr/
sur mobile : https://m.bison-fute.gouv.fr/

Pour vous désabonner ou modifier votre abonnement, faites la demande à : abonnement-tipi@developpement-durable.gouv.fr

You may want to subscribe and verify how it works, the information level and possible filters.

Samanbaia commented 1 month ago

For Italy, i found an RSS that could possibly be used???? https://www.cciss.it/rss

can that be something usable?

Samanbaia commented 1 month ago

finally, always for Italy, I found the following: https://www.cciss.it/web/cciss/database-rds-tmc?cciss_lang=en that seems the way to use the traffic information in italy.

Is that what we look after?

DDzwiedziu commented 1 month ago

There is also another free data source for EU countries - National Access Points (NAP). Government agencies use them to provide up to date information about road closures, traffic accidents, road works and road conditions. The links for the national portals are located at https://www.openmobility.be/NAPs. (…)

I can confirm that the Luxembourg data sources were pointed to me by data.public.lu people directly. You need to select the type of data, from weather to parking occupancy (where available), i.e. Les chantiers actuels (fr. current roadworks) -> Files and there you'll have option to select PDF, datexii or KML with permalinks.

TobiPeterG commented 1 month ago

@Samanbaia could you please open an issue per country on the server project with the information you gathered so far? We then have a proper place to discuss these things. :)