From my searches of the Wiki I do not find anything that covers more of the "theory of operation" around tunnels. WeeeZer14 mentioned to me that it comes up enough it would be good to have something to reference. Currently on our Map Editing Page
we have a TODO item on Tunnels. It is listed as "How to add tunnels", but currently nonexistent. We can link that to this page and cover any aspect of the tunnel.
I propose a full page with the following basic information. Below is the basic content/outline. Any comments or suggestions are welcome. Once we get far enough along we can create the actual "Tunnel" Wiki markup and add the appropriate interpage Wikilinks. I need feedback on the Theory of Operation section since I am making that up based on what I know about the segment tracking.
Also I rarely go though any tunnels, but I have one just north of me (mostly straight) that I can do some basic tests as needed. If someone has more experience with tunnels please speak up.
I did find a few threads talking about tunnels and sound like the problem is worse than I have described. My description appears to be the solution after the Waze client app uses the accelerometer in the phone. Is it possible some phones provide more tracking in tunnels than others? If we don't know I can pose the question to the Waze team to try to get an answer.http://world.waze.com/forum/viewtopic.p ... 51#p197951viewtopic.php?f=16&t=22589&p=250978&hilit=tunnels#p250978
Tunnels are no different from any roadway segment(s) including bridges, viaducts, overpasses, etc. The are drawn and modified the same way as any other road using the geometry nodes to shape the roadway through the tunnel.
==Theory of operation==
The complication with navigation through tunnels is that generally they obscure GPS communication and cell phone data connections. The Waze servers track each mobile device (driver) as they enter and exit each segment along their route. With the start and end times of each segment, the Waze server can calculate the average speed of drivers through that segment. This is how the Waze server can determine if the tunnel traffic is flowing normally, or if there is a slowdown of the vehicles in the tunnel even without the GPS tracking information while inside the tunnel.<!--
1. Is this correct? Again the few times I have passed through my short tunnels I did not pay attention.
2. Do we want to get into more details than this?
3. What does it do if there is a junction inside the tunnel and only the outside ends of both segments are accessible to the server. Does it simply take a weighted average based on proportional length of the two segments and assign average speed to both based on the one reading?
==Creating a tunnel==
Due to the GPS and mobile device data communication problems inside tunnels, the mapping process of the tunnel is difficult if it does not follow a straight path from the entrance to the exit. The important point of any tunnel mapping is to at least connect the two entrances to enable the routing engine to use the roadway through the tunnel as appropriate for destinations on the other side of the tunnel.
Find on the visual map the locations of the two entrances of the tunnel. If you know the tunnel is a straight path through the tunnel you can simply draw a new straight road between the two entrances and name the segment appropriately. If you don't know the path of the tunnel personally, check to see what is shown with the GPS tracks through that area. If it shows a consistent path of curves, then the active mobile devices are able to track and communicate the data back to the Waze server and you should lay out the road following that path by altering the geometry nodes to match it.
If you know the roadway is curved by personal experience and there are no matching curved GPS tracks, consider estimating about where the curves exist inside and shape the segment using the geometry nodes. Then once that new roadway segment is live on the client app you can drive through that tunnel and if the mobile device has the ability to generate its own internal GPS estimate you can see about where on the map your vehicle is in relation to the roadway. Note where the road may turn before or after the map display and make adjustments when you return to the map editor later. Although it is not critical that it match exactly, it is helpful for drivers to have the visual route be similar to the real road as they pass through the area.
==Junctions in tunnels==
Some roadways through tunnels include splits or exits to other routes inside the tunnel. Creating the split is done the same as with any other junction. As described in the section above, the GPS tracking and navigation may make it difficult to know exactly where in the tunnel that turn truly exists. In the case of splits and exits, it is more important to be more accurate in the estimate of the actual roadway split or exit so the navigation directions match the roadway as closely as possible.
==Tolls for tunnels==
If a tunnel requires a toll to be paid in order to pass through the tunnel, use the same toll road
controls as for any other roadway segment.