Routing server: Diferență între versiuni Istoric

(replacing https by http in external links (to not display the lock icon))
(Marcat această versiune pentru traducere)
 
(Nu s-au afișat 18 versiuni intermediare efectuate de alți 6 utilizatori)
Linia 1: Linia 1:
<!--KEEP THIS PAGE IN ALPHABETICAL ORDER-->
<languages/>
{{SelectionBar}}
<translate>
The following links are entry forms used to contact Waze or Champs for help regarding specific issues or requests.
<!--T:143-->
<!--if the section parameter is defined, do not place the visible banner, only as the code block for the top of a section-->{{GlobalMark/visible}}
<!--
#####-----#####-----#####-----#####-----#####-----#####-----#####-----#####-----
####    This page has been curated  ####
####    to be included in the new    ####
####    Wazeopedia - GLOBAL Wiki.  ####
####    Please do not make any      ####
####    edits on this page without  ####
####    PRIOR CONSENSUS in the Wiki  ####
####    Updates and Discussions      ####
####    forum thread for this page.  ####
####    If a specific forum thread  ####
####    for this page doesn't exist  ####
####    please start one.           ####
####        www.waze.com/forum/      ####
####        viewforum.php?f=276      ####
#####-----#####-----#####-----#####-----#####-----#####-----#####-----#####-->


'''{{Red|NOTE:}}''' These forms should be used only for assistance pertaining to the specific issue or request of the entry form. If you need assistance with any issue that one of the forms here can not resolve, you can seek help in [http://www.waze.com/forum/index.php the Forum] or by [http://www.waze.com/support/question Contacting Waze Support].
<!--T:144-->
When using the Waze application, Waze servers use routing algorithms to determine the best path for a given route at that particular time. The specific details of the routing algorithms used by the Waze server are not publicly disclosed and the following is based on observation, speculation, and some information revealed by Waze staff. It is assumed that the operation of the routing server is considered to be proprietary and a competitive advantage to Waze. It is also assumed that it is subject to change, and that any information that has been revealed might be incomplete or out of date.


====Advertisement Pin Corrections====
{{Anchor|Advertisement Pin Corrections (Obsolete}}
[http://docs.google.com/forms/d/1S9foOu3CKZIAc9QaAswucCrnAB_AdbIKms-X_BZKVs0/viewform US Ads Issues]


'''Note: New form released {{As of|2014|12|30|df=us|lc=yes}} for the USA.'''
<br>
If you find advertisment pins, in the app, that are wrong, either the location, name, or other details, use this form to report it to Waze. The Waze team monitors this so they can fix it, or report it to advertisers.


''Note: The old form [http://docs.google.com/forms/d/1tF9Lo3TNNF5hVdTfVgi6c7eB5vjwl14A7-rR0e6cQRM/viewform?formkey=dGZ4UHc0dG8tbXk0b1FZczQtM0RkWmc6MQ Advertisement pins requiring corrections] is no longer active.''
Additional Info: [http://www.waze.com/forum/viewtopic.php?f=8&t=34581#p933670 Incorrect Advertisement Placement Report Form]
<!-- Added 2014-10-19 -->


====Aerial Photograph Requests====
== Client based routing == <!--T:145-->
[http://www.waze.com/forum/viewtopic.php?f=8&t=109167 Aerial Photograph Requests] <br>
A new program is being tested that links volunteer pilots with Waze volunteer map editors. The pilots submit aerial photographs of new and changing roads so that Waze users can have the most accurate and up-to-date driving navigation available.
Additional Info: [[Aerial_Photograph_Requests|Aerial Photograph Requests]]
<!-- Added 2014-10-19 -->


====Area Manager Application - USA====
<!--T:146-->
[http://docs.google.com/forms/d/1VZ04DK2UWST7wNBfOuiRI6fyZLkBh_BBo2nn3QtXvo0/viewform Application for US Area Manager (new or expanded)]<br>This form is intended for those who are already familiar with Waze map editing, the Waze wiki and the editing documentation it contains. Prospective editors should also be familiar with and already participating in the Waze forums. If you don't have this experience, we suggest that you take your time and become more familiar with editing the Waze map.<br>
Calculating an optimal route is a difficult task. While the client device app has a routing algorithm included, this is not used unless there is no connection to the Waze server.
Additional Info: [http://www.waze.com/forum/viewtopic.php?f=645&t=45898 United States Area Manager Application]
<!-- Added 2014-10-19 -->


====Banned/Flagged Account Restoration Form====
[http://support.google.com/waze/answer/6086829?hl=en Flagged accounts]<br>Use this form to contact Waze if you believe your Waze account was wrongfully blocked.
<!-- Added 2014-11-26 -->


====Cities Form====
[http://docs.google.com/forms/d/1jP38BrXfr9VUAk1V1D34MUZCuWPuuFr8LTrVNhR4W_8/viewform City Merge/Change/Remove Form]<br>Submit a request to Change City Name, Merge Cities, Delete City, Report Duplicate City & Smudged City. '''Note:''' There are 2 forms available to submit a request, please be sure to use the USA form for all requests in the United States, all others can use the All Requests Form.<br>
Additional Info: [[Smudged_city|Smudged Cities]]
<!-- Added 2014-10-19 -->


====Connected Citizens Program Form====
[http://docs.google.com/forms/d/1-suA0OZZOMJq7d_CsCdDp_rVYbxz4yQdCiN4iDUhf-w/viewform?embedded=true Connected Citizens Program Inquiries]<br>The Waze Connected Citizens program brings cities and citizens together to answer the questions “What’s happening, and where?”  We exchange publicly available incident and road closure reports, enabling our government partners to respond more immediately to accidents and congestion on their roads. In turn, we aggregate our partners' data on the Waze platform, resulting in one of the most succinct, thorough overviews of current road conditions today.
<br>
<br>
With the addition of city data, Wazers will be even safer  on the roads and more knowledgeable about construction, marathons, floods or anything else that can cause delays. And for our government partners, publicly-available Waze data is a powerful tool to build more efficient cities. Real-time information from drivers is essential; no one knows more about what's happening in a city than the people who live there. In an era with smart phones, smart cars and smart homes, isn't it about time we start building smarter cities?<br>
Additional Info: [http://www.waze.com/connectedcitizens Connected Citizens Program] Video: [http://www.youtube.com/watch?v=YmRW47XJfhQ Waze Connected Citizens]
<!-- Added 2014-12-17 -->


====Formal Mentoring Requests====
== Routing requests == <!--T:147-->
[http://docs.google.com/forms/d/1B3bvjTYsO1r5GOxaXB1x9nN0AG5bY7OZFv_6WJ12wm0/viewform Formal Mentoring Application Form]<br>Formal Mentoring in the USA is a one-on-one interaction between a Mentee and Mentor with specific objectives of increasing skill, editor level, and Waze Community participation. It entails a specific Mentee-Mentor pair who agree upon an objective, start, and end, this process needs a bit more coordination. It also requires commitment from both the Mentee and Mentor to complete the objective.<br>
Additional Info: [[Mentoring/Formal/USA|Mentoring/Formal/USA]]
<!-- Added 2014-10-19 -->


====Ghost Gas Stations====
<!--T:148-->
[http://docs.google.com/forms/d/1aYHF0nm5Uktb8P7glUD3HQvmjUzU0ckxTxiH0_GQgCI/viewform Ghost Gas Stations]<br>If you discover a gas station appearing in Waze that does NOT have an associated landmark at that location, then you can report it here for Waze to fix manually<br>
When you request a route calculation, the request is sent to the Waze server. That route is then transmitted back to your client device and displayed.  
Additional Info: [http://www.waze.com/forum/viewtopic.php?t=72421 Ghost Gas Stations]
<!-- Added 2014-10-19 -->


====Google Address Pin Adjustments====
<!--T:149-->
[http://docs.google.com/forms/d/1bpxf3n_c2c63oQzojwVX2PVohuMtiXLL9z6snld-Wyo/viewform Google Address Pin Adjustment]<br>Use this form to submit corrections to Google's Address Pin locations in Google Maps.<br>
The requests for routing vary according to the settings you have chosen on your client device. Under Navigation you can choose:
Additional Info: [http://www.waze.com/forum/viewtopic.php?f=622&t=104617 Google related address issues and Update Requests]
* Fastest or shortest route
<!-- Added 2014-10-19 -->
* Whether to allow or avoid toll roads
* Whether to allow dirt roads, never allow dirt roads, or to avoid long dirt roads
* Whether to avoid major highways


====Major Traffic Events Form====
<!--T:150-->
[http://www.waze.com/forum/viewtopic.php?f=815&t=76775 Mega Traffic Events]<br>Use this form to share any major traffic event in your area, and the Waze team will make every effort to process the information provided. This form should only be used to report planned road closures, caused by major events.<br>
The shortest route refers to physical distance. Most people usually prefer the Fastest route option; 100km of freeway is better than 90km of country roads.
Additional Info: [http://www.waze.com/events Major Traffic Events (Waze)] & [http://www.waze.com/forum/viewforum.php?f=815 Major Traffic Events (Forum)]
<!-- Added 2014-10-19 -->


==== Map Offsets in the Editor====
[http://www.waze.com/forum/viewtopic.php?f=8&t=92201 Map offsets in the editor]<br>Use this form whenever you notice an area in the Editor, with aerial images that are misaligned with the existing roads.<br>
<!-- Added 2014-10-19 -->


====Places outdated in Google appearing in Waze====
[http://www.waze.com/forum/viewtopic.php?f=8&t=105736 Places outdated in Google appearing in Waze Search Results]<br>There is an ongoing issue regarding ‘Places’. In certain instances, search results display ‘Places’ that no longer exist. While these ‘Places’ do not exist on the Waze map any more, they are still in Google’s database. This causes search errors in countries where you get Google's results by default. We would like to fix this. Please submit examples of this issue to us using this form and we will do our best to correct it.<br>
<!-- Added 2014-10-19 -->


====Report a Bug====
[http://support.google.com/waze/answer/6090951?hl=en Report a Bug] <br>
If you're experiencing crashes during navigation or any other bug, use this form to submit the bug to Waze.
<!-- Added 2014-11-26 -->


====Road Closures for All Editors - USA====
== Missing roads and incorrect junction connections == <!--T:151-->
[http://docs.google.com/forms/d/1oGINt4UEkBV0Par5VCingXzTZpJq9KjG8GbZpGqbRow/viewform Closures for All Editors - USA]<br>Use this form to report construction work closures and emergency closures. <br>
Additional Info: [http://www.waze.com/forum/viewtopic.php?f=129&t=102605 Road Closures Form for All Editors]
<!-- Added 2014-10-19 -->


====Unlock Staff Locked Segments====
<!--T:152-->
[http://docs.google.com/spreadsheet/viewform?fromEmail=true&formkey=dGlLcFd1V1dkZW41Y0lKMTJMaXZTUEE6MQ Unlock Staff locked segments]<br>When a segment(s) or object shows as locked by "Staff," no volunteer Waze editor can unlock or update this for you. The only way to get these resolved is to submit a Staff Unlock Request which is handled by Waze Support staff.<br>
Waze tries to find the best route between you and your destination based on your navigation settings. Obviously it can only route based on roads that it knows about, so your route will not be optimal if a better route does not have all the roads with correct connections in the [[Special:MyLanguage/Waze Map Editor|Waze Map Editor]]. Also if [[Segment length|segments are less than {{:Segment length/Minimum}}]] they can cause routing issues.
Additional Info: [http://www.waze.com/forum/viewtopic.php?f=622&t=45264 STAFF Unlock Requests]
 
<!-- Added 2014-10-19 -->
 
 
 
== Real-time current road speeds == <!--T:153-->
 
<!--T:154-->
The routing server uses real-time road speeds (from recent Waze app users if available) and combines the historical speed of the segment broken down into 10-15 minute chunks. The time to pass through a segment is tracked separately for each route out of a segment. For example if a segment ends with a left and right turn (no straight let's say), then the routing engine isolates the time through the segment to turn left and the time through the segment to turn right. This detailed speed information is proprietary & is part of the data Waze sells/plans to sell and won't be displayed through the editor.
 
<!--T:155-->
It is known that Waze uses real-time reports of current road speeds by preference over historical average road speeds. Waze also uses traffic congestion reports to reroute around slow traffic. <!-- Early versions of the client would also report when traffic speeds were good - this was removed due to map clutter. But Waze will still be receiving this information. -->It is assumed that the speed of any Wazer ahead of you on a stretch of road will be the speed used when your route is calculated.
 
<!--T:156-->
As the number and density of Wazers grows, this real-time data takes on a greater importance. This emphasis is partly a reflection of Waze's original goal to create optimal commutes. As Waze has grown to be used as a more general purpose GPS navigation device over roads less traveled, the historical average road speeds becomes more important.
 
<!--T:157-->
Since Waze uses the time you expect to be at a road segment to calculate the expected speed on that segment, it cannot use real time data when your trip time moves into a future time slot. So trips of more than 30 minutes (and on average more than 15 minutes) will include future time slots where current traffic data is not available when initially calculated. When you enter a new time slot, any real-time traffic data that is available causes your client to recalculate your ETA and reroute you at that point.
 
 
 
 
== Fastest routing == <!--T:158-->
 
<!--T:159-->
Waze knows the average speed of every confirmed road between you and your destination. The Waze server can calculate which list of roads to take to minimize the total travel time.
 
<!--T:160-->
While every request is processed in real-time, by observation it appears that Waze [[Special:MyLanguage/glossary|caches]] some requested routes or major points. This means if it already knows the best route from B to C, and you ask for a route from A to C, it might just calculate the best route from A to B, once it checks that there isn't a better route bypassing B altogether. This does mean that when there is a [[Special:MyLanguage/Timeline of updating process|Live map update]] some routes might be less than optimal for up to a day as routes are cached and recalculated.
 
<!--T:161-->
While a complex calculation, calculating the optimal route is possible. The complexity arises over the "average speed" of the roads.
 
 
 
 
== Changes in route due to different origin == <!--T:162-->
 
<!--T:163-->
Consider calculating a route from A to Z. The suggested route might be A to B to C to D to Z. Then calculate the route from B to Z. You might get a suggested route of B to C to E to Z. At first glance, this suggests one route is not optimal because the [[Special:MyLanguage/Glossary|origin]] changed.
 
<!--T:164-->
We can guess at what might be happening. There might be a problem associated with the possible caching of routes. Or there might be a "timing window" effect. The different arrival time at C might change the best route to Z. Or there might be a fine tuning effect in the route, perhaps to avoid too many turns. So by dropping the segment A to B, the segments C to E to Z no longer exceed some threshold.
 
<!--T:165-->
This effect can be observed while driving. If you recalculate a route to a destination while driving along an already calculated route to that same destination, the route can change.
 
<!--T:166-->
Waze sometimes offers a new route to bypass heavy traffic which raises the question as to when and how Waze considers rerouting.
 
 
 
 
== Changes in routes due to different route lengths == <!--T:167-->
 
<!--T:168-->
In addition, it is known that the Waze routing engine can't calculate every possible route for long distance routes, so it takes shortcuts for longer routes, potentially resulting in the route changing dramatically when lengthened slightly. According to Waze support ({{as of|July 2011|lc=y}}), the section of a route more than 10 km from each endpoint is heavily weighted towards non-streets (i.e. "Primary Streets" or the various Highway types). It is believed that Waze servers simply ignore streets outside of the 10 km radius from the endpoints when doing its calculations to speed up the process.
 
 
 
 
== Problems with average road speeds == <!--T:169-->
 
<!--T:170-->
If the average road speed is not correct, then the route will not be optimal. However, it is never recommended to delete segments in order to reset the average road speed for that segment. Waze uses the data from Wazers traveling through the segments to update the average speed. If you suspect Waze is not using certain segments along a route, there are a number of other reasons that can cause such a situation. Don't assume deleting the segment is the place to start.
 
<!--T:171-->
The following are reasons why the routing engine might not use the average road speed.
 
 
 
 
=== Time of day variations === <!--T:172-->
 
<!--T:173-->
Consider a road that most Wazers drive at 5pm when the average speed is 12 mph. You choose your route at 10am when the road is clear and the average speed is 60mph. It is the best road to take, but Waze chooses a different route because it has no information about the speed at 10am and assumes the speeds is 12mph all day.
 
<!--T:174-->
You can, of course, drive the road yourself, and Waze eventually learns the speed for that time. We do not know how long Waze holds the older data in computing the average speed. However, if Waze does discard old time information, you might not accumulate new time faster than it is discarded. It is also possible that your times are being ignored as being abnormal.
 
<!--T:175-->
More Waze users would help fix this.
 
 
 
 
=== Turn delays === <!--T:176-->
 
<!--T:177-->
On a segment of a road, your average speed can be very different depending on what you do at the end of the segment. Traffic going straight through a traffic light might go very fast while traffic turning left might wait a very long time. A freeway exit lane might go fast while traffic continuing hits congestion.
 
<!--T:178-->
[[Special:MyLanguage/Image:SegmentTraffic1.png|right|350px]]Waze has the ability to separately track the average speed of traffic that passes through a segment, but exits to different segments. The routing engine takes this into account. In the diagram, multiple times are tracked for traffic flowing through Seg4 based on the segments to which it exits. There are then two average drive times for:
 
<!--T:179-->
* Seg4 to Jnct2 to Seg5
 
<!--T:180-->
* Seg4 to Jnct2 to Seg6
 
<!--T:181-->
Traffic building up on Seg4 that turns right to Seg6 does not affect the route timing for the traffic also using Seg4, but instead turning left to Seg5.
For this reason it is important to keep long segment lengths before junctions as traffic congestion at the junction might affect exits differently.
 
<!--T:182-->
To understand this problem better, consider if we add a short Seg8 between Seg7 and Jnct4. Let's say the traffic exiting Seg10 backs up all the way to Seg7 (easy enough, since Seg8 is short). Because Seg7 only has a single exiting segment (Seg8), the routing server is only able to collect a single average speed &mdash; it can no longer distinguish traffic by where it is going ''after'' Seg8. Now the through traffic going to Seg9 appears to Waze to slow down through Seg7, even though it doesn't in reality. At a minimum this causes an incorrect ETA for routing, and it might actually cause traffic to be rerouted unnecessarily, and less optimally, through another route. Hence, if there is a chance that traffic can go in different directions at a junction and that junction can experience different amounts of congestion, you should keep the segment before that junction long.
 
<!--T:183-->
Note this data is not presented to users through the Waze Map Editor, but is only visible to the routing server.
 
 
 
 
== Traffic lights and stop signs == <!--T:184-->
 
<!--T:185-->
Waze does not record the location of traffic lights. While some GPS navigation offers guidance like "turn right at the next traffic light" the information is frequently incomplete, incorrect or outdated. The consensus view is that Waze should not record the location of traffic lights.
 
<!--T:186-->
Waze does take traffic lights and stop signs into account by noting the effect they have on traffic speed. Consider a traffic light with long waiting times. The road segment leading to that traffic light will have a low average speed. If the average speed (based on the average waiting time) becomes low enough, a longer route that avoids the light becomes the preferred route. This has been observed in practice and is an example of ''emergent behaviour''. Waze isn't programmed to avoid traffic lights but it does avoid slow roads; if the traffic lights make the road slow then Waze avoids them.
 
<!--T:187-->
Some drivers regularly take longer routes — even winding through side streets — to avoid any stops or traffic lights. Waze has been known to suggest this, and also known to revert to waiting at lights when better average speed information is collected from the side streets. But note that this can be less than optimal due to the turn delays discussed above.
 
 
 
 
== Outdated and abnormal road speeds == <!--T:188-->
 
<!--T:189-->
Road conditions change, construction work comes and goes, and average road speeds can change dramatically. One day you might be stuck behind a truck, and another day you might be crawling along the roads at 2 a.m. transporting your pet goldfish. Or your GPS might have a glitch and show you travelling at 1,000 mph.
 
<!--T:190-->
In short, average speeds can change over time, and recorded times can be abnormal or just plain wrong—and can stay wrong for a very long time.
 
<!--T:191-->
We can assume Waze is aware of this. There is some evidence that abnormal road speeds and old road speeds are discarded, or at least not used in calculating the average speeds of roads.
 
 
 
 
== Average road speed "shrinking window" == <!--T:192-->
 
<!--T:193-->
If there are enough recorded speeds on a road, then Waze uses a shrinking window of speeds to better estimate the average speed at the time you are travelling on it. Waze uses the speed of each road segment (in both directions) in intervals as small as 30 minutes. So a two-way road might have up to 96 average road speeds. We can assume that when there are insufficient records for an individual time slot, a wider time range is used (up to a full day). As the road is driven more, the time slot shrinks down to 30 minutes.
 
<!--T:194-->
We can speculate that there is additional information used that is based upon the day of the week. There is some observational evidence that a road that is busy on weekdays and not used for routing is chosen as the optimal route on weekends.
 
<!--T:195-->
At some point, Waze also needs to consider the months of the year as seasonal variations can affect the speed of the roads.
 
<!--T:196-->
Waze uses the average road segment speed for the time slot that applies at the time you are expected to arrive at that road segment.
 
<!--T:197-->
Because of this "time window", Waze suggests different routes at different times of day. This is dependent on how many times are recorded on the roads along the route. If they're all recorded at about the same time of day, then the time window does not help. If 1,000 times are recorded at about 5 p.m. and 2 times are recorded at 10 a.m., then your 10 a.m. average speed still is based mostly on times from around 5 p.m.
 
 
 
 
== Routing algorithm refinements == <!--T:198-->
 
 
=== Routing options === <!--T:199-->
 
<!--T:200-->
It's easy to see how routing options can be implemented. For example, to minimize turns we can add a time [[Special:MyLanguage/Routing_penalties|penalty]] for fastest routing or a distance penalty for shortest routing, when calculating the fastest or shortest route.
 
 
 
 
=== Junction penalties === <!--T:201-->
 
<!--T:202-->
For newly created roads, currently Waze applies a five-second time [[Special:MyLanguage/Routing_penalties|penalty]] for each junction through which a route passes. Once vehicles drive over that road and generate Waze traffic data, the penalty for these junctions is dropped.
 
 
 
 
== What to do if you think the generated route is wrong == <!--T:203-->
 
<!--T:204-->
Firstly, use the option to generate alternative routes. This might give you some clues as to why Waze is offering that route.
 
<!--T:205-->
Secondly, if you think there is a better route, check in WME that the roads are all connected along the route.
 
<!--T:206-->
Thirdly, post a message detailing the problem route - origin, destination and a WME permalink to the [http://www.waze.com/forum/viewforum.php?f=6&sid=2872533f5796ac39dc6747511398e907 Navigation forum]. Other eyes will check it, and you might indeed find a flaw in the Waze routing algorithm. Fixing it might make it better for everyone.
 
 
 
 
== Change of routing == <!--T:207-->
 
<!--T:208-->
When Waze receives notification of traffic conditions it uses the actual speed of roads on your route, rather than the average speed. This is based only on the automatic traffic condition reports - light, moderate, heavy traffic or complete standstill. Manual reports of traffic jams and accidents are for your information only and do not change routing.
 
<!--T:209-->
It might be that even with the traffic reports, there is no better route and Waze cannot offer you one.
 
 
 
 
== You are the driver == <!--T:210-->
 
<!--T:211-->
Waze can never see that the traffic light is green going straight, or know that today is a public holiday. It can offer you guidance as to what is the best route under average conditions. But you are the driver and you are in the best position to make the decision for today under today's conditions.
 
<!--T:212-->
If everyone followed Waze directions and never drove on a new route, Waze might never learn that route is better. When Waze is recording your travels, every trip helps make Waze better for everyone. That includes when you think you know better. Sometimes you will be right. And sometimes you will be wrong. But it is better to find out you are wrong so you can choose the better route. And when you are right, all Waze users benefit by the sharing of your knowledge.
 
<!--T:213-->
[[Category:Review redirects]]
[[Category:Waze operations]]
</translate>

Versiunea curentă din 13 aprilie 2020 15:42

Alte limbi:
  • română

When using the Waze application, Waze servers use routing algorithms to determine the best path for a given route at that particular time. The specific details of the routing algorithms used by the Waze server are not publicly disclosed and the following is based on observation, speculation, and some information revealed by Waze staff. It is assumed that the operation of the routing server is considered to be proprietary and a competitive advantage to Waze. It is also assumed that it is subject to change, and that any information that has been revealed might be incomplete or out of date.



Client based routing

Calculating an optimal route is a difficult task. While the client device app has a routing algorithm included, this is not used unless there is no connection to the Waze server.



Routing requests

When you request a route calculation, the request is sent to the Waze server. That route is then transmitted back to your client device and displayed.

The requests for routing vary according to the settings you have chosen on your client device. Under Navigation you can choose:

  • Fastest or shortest route
  • Whether to allow or avoid toll roads
  • Whether to allow dirt roads, never allow dirt roads, or to avoid long dirt roads
  • Whether to avoid major highways

The shortest route refers to physical distance. Most people usually prefer the Fastest route option; 100km of freeway is better than 90km of country roads.



Missing roads and incorrect junction connections

Waze tries to find the best route between you and your destination based on your navigation settings. Obviously it can only route based on roads that it knows about, so your route will not be optimal if a better route does not have all the roads with correct connections in the Waze Map Editor. Also if segments are less than 5 m (16 feet) they can cause routing issues.



Real-time current road speeds

The routing server uses real-time road speeds (from recent Waze app users if available) and combines the historical speed of the segment broken down into 10-15 minute chunks. The time to pass through a segment is tracked separately for each route out of a segment. For example if a segment ends with a left and right turn (no straight let's say), then the routing engine isolates the time through the segment to turn left and the time through the segment to turn right. This detailed speed information is proprietary & is part of the data Waze sells/plans to sell and won't be displayed through the editor.

It is known that Waze uses real-time reports of current road speeds by preference over historical average road speeds. Waze also uses traffic congestion reports to reroute around slow traffic. It is assumed that the speed of any Wazer ahead of you on a stretch of road will be the speed used when your route is calculated.

As the number and density of Wazers grows, this real-time data takes on a greater importance. This emphasis is partly a reflection of Waze's original goal to create optimal commutes. As Waze has grown to be used as a more general purpose GPS navigation device over roads less traveled, the historical average road speeds becomes more important.

Since Waze uses the time you expect to be at a road segment to calculate the expected speed on that segment, it cannot use real time data when your trip time moves into a future time slot. So trips of more than 30 minutes (and on average more than 15 minutes) will include future time slots where current traffic data is not available when initially calculated. When you enter a new time slot, any real-time traffic data that is available causes your client to recalculate your ETA and reroute you at that point.



Fastest routing

Waze knows the average speed of every confirmed road between you and your destination. The Waze server can calculate which list of roads to take to minimize the total travel time.

While every request is processed in real-time, by observation it appears that Waze caches some requested routes or major points. This means if it already knows the best route from B to C, and you ask for a route from A to C, it might just calculate the best route from A to B, once it checks that there isn't a better route bypassing B altogether. This does mean that when there is a Live map update some routes might be less than optimal for up to a day as routes are cached and recalculated.

While a complex calculation, calculating the optimal route is possible. The complexity arises over the "average speed" of the roads.



Changes in route due to different origin

Consider calculating a route from A to Z. The suggested route might be A to B to C to D to Z. Then calculate the route from B to Z. You might get a suggested route of B to C to E to Z. At first glance, this suggests one route is not optimal because the origin changed.

We can guess at what might be happening. There might be a problem associated with the possible caching of routes. Or there might be a "timing window" effect. The different arrival time at C might change the best route to Z. Or there might be a fine tuning effect in the route, perhaps to avoid too many turns. So by dropping the segment A to B, the segments C to E to Z no longer exceed some threshold.

This effect can be observed while driving. If you recalculate a route to a destination while driving along an already calculated route to that same destination, the route can change.

Waze sometimes offers a new route to bypass heavy traffic which raises the question as to when and how Waze considers rerouting.



Changes in routes due to different route lengths

In addition, it is known that the Waze routing engine can't calculate every possible route for long distance routes, so it takes shortcuts for longer routes, potentially resulting in the route changing dramatically when lengthened slightly. According to Waze support (as of July 2011), the section of a route more than 10 km from each endpoint is heavily weighted towards non-streets (i.e. "Primary Streets" or the various Highway types). It is believed that Waze servers simply ignore streets outside of the 10 km radius from the endpoints when doing its calculations to speed up the process.



Problems with average road speeds

If the average road speed is not correct, then the route will not be optimal. However, it is never recommended to delete segments in order to reset the average road speed for that segment. Waze uses the data from Wazers traveling through the segments to update the average speed. If you suspect Waze is not using certain segments along a route, there are a number of other reasons that can cause such a situation. Don't assume deleting the segment is the place to start.

The following are reasons why the routing engine might not use the average road speed.



Time of day variations

Consider a road that most Wazers drive at 5pm when the average speed is 12 mph. You choose your route at 10am when the road is clear and the average speed is 60mph. It is the best road to take, but Waze chooses a different route because it has no information about the speed at 10am and assumes the speeds is 12mph all day.

You can, of course, drive the road yourself, and Waze eventually learns the speed for that time. We do not know how long Waze holds the older data in computing the average speed. However, if Waze does discard old time information, you might not accumulate new time faster than it is discarded. It is also possible that your times are being ignored as being abnormal.

More Waze users would help fix this.



Turn delays

On a segment of a road, your average speed can be very different depending on what you do at the end of the segment. Traffic going straight through a traffic light might go very fast while traffic turning left might wait a very long time. A freeway exit lane might go fast while traffic continuing hits congestion.

right|350pxWaze has the ability to separately track the average speed of traffic that passes through a segment, but exits to different segments. The routing engine takes this into account. In the diagram, multiple times are tracked for traffic flowing through Seg4 based on the segments to which it exits. There are then two average drive times for:

  • Seg4 to Jnct2 to Seg5
  • Seg4 to Jnct2 to Seg6

Traffic building up on Seg4 that turns right to Seg6 does not affect the route timing for the traffic also using Seg4, but instead turning left to Seg5. For this reason it is important to keep long segment lengths before junctions as traffic congestion at the junction might affect exits differently.

To understand this problem better, consider if we add a short Seg8 between Seg7 and Jnct4. Let's say the traffic exiting Seg10 backs up all the way to Seg7 (easy enough, since Seg8 is short). Because Seg7 only has a single exiting segment (Seg8), the routing server is only able to collect a single average speed — it can no longer distinguish traffic by where it is going after Seg8. Now the through traffic going to Seg9 appears to Waze to slow down through Seg7, even though it doesn't in reality. At a minimum this causes an incorrect ETA for routing, and it might actually cause traffic to be rerouted unnecessarily, and less optimally, through another route. Hence, if there is a chance that traffic can go in different directions at a junction and that junction can experience different amounts of congestion, you should keep the segment before that junction long.

Note this data is not presented to users through the Waze Map Editor, but is only visible to the routing server.



Traffic lights and stop signs

Waze does not record the location of traffic lights. While some GPS navigation offers guidance like "turn right at the next traffic light" the information is frequently incomplete, incorrect or outdated. The consensus view is that Waze should not record the location of traffic lights.

Waze does take traffic lights and stop signs into account by noting the effect they have on traffic speed. Consider a traffic light with long waiting times. The road segment leading to that traffic light will have a low average speed. If the average speed (based on the average waiting time) becomes low enough, a longer route that avoids the light becomes the preferred route. This has been observed in practice and is an example of emergent behaviour. Waze isn't programmed to avoid traffic lights but it does avoid slow roads; if the traffic lights make the road slow then Waze avoids them.

Some drivers regularly take longer routes — even winding through side streets — to avoid any stops or traffic lights. Waze has been known to suggest this, and also known to revert to waiting at lights when better average speed information is collected from the side streets. But note that this can be less than optimal due to the turn delays discussed above.



Outdated and abnormal road speeds

Road conditions change, construction work comes and goes, and average road speeds can change dramatically. One day you might be stuck behind a truck, and another day you might be crawling along the roads at 2 a.m. transporting your pet goldfish. Or your GPS might have a glitch and show you travelling at 1,000 mph.

In short, average speeds can change over time, and recorded times can be abnormal or just plain wrong—and can stay wrong for a very long time.

We can assume Waze is aware of this. There is some evidence that abnormal road speeds and old road speeds are discarded, or at least not used in calculating the average speeds of roads.



Average road speed "shrinking window"

If there are enough recorded speeds on a road, then Waze uses a shrinking window of speeds to better estimate the average speed at the time you are travelling on it. Waze uses the speed of each road segment (in both directions) in intervals as small as 30 minutes. So a two-way road might have up to 96 average road speeds. We can assume that when there are insufficient records for an individual time slot, a wider time range is used (up to a full day). As the road is driven more, the time slot shrinks down to 30 minutes.

We can speculate that there is additional information used that is based upon the day of the week. There is some observational evidence that a road that is busy on weekdays and not used for routing is chosen as the optimal route on weekends.

At some point, Waze also needs to consider the months of the year as seasonal variations can affect the speed of the roads.

Waze uses the average road segment speed for the time slot that applies at the time you are expected to arrive at that road segment.

Because of this "time window", Waze suggests different routes at different times of day. This is dependent on how many times are recorded on the roads along the route. If they're all recorded at about the same time of day, then the time window does not help. If 1,000 times are recorded at about 5 p.m. and 2 times are recorded at 10 a.m., then your 10 a.m. average speed still is based mostly on times from around 5 p.m.



Routing algorithm refinements

Routing options

It's easy to see how routing options can be implemented. For example, to minimize turns we can add a time penalty for fastest routing or a distance penalty for shortest routing, when calculating the fastest or shortest route.



Junction penalties

For newly created roads, currently Waze applies a five-second time penalty for each junction through which a route passes. Once vehicles drive over that road and generate Waze traffic data, the penalty for these junctions is dropped.



What to do if you think the generated route is wrong

Firstly, use the option to generate alternative routes. This might give you some clues as to why Waze is offering that route.

Secondly, if you think there is a better route, check in WME that the roads are all connected along the route.

Thirdly, post a message detailing the problem route - origin, destination and a WME permalink to the Navigation forum. Other eyes will check it, and you might indeed find a flaw in the Waze routing algorithm. Fixing it might make it better for everyone.



Change of routing

When Waze receives notification of traffic conditions it uses the actual speed of roads on your route, rather than the average speed. This is based only on the automatic traffic condition reports - light, moderate, heavy traffic or complete standstill. Manual reports of traffic jams and accidents are for your information only and do not change routing.

It might be that even with the traffic reports, there is no better route and Waze cannot offer you one.



You are the driver

Waze can never see that the traffic light is green going straight, or know that today is a public holiday. It can offer you guidance as to what is the best route under average conditions. But you are the driver and you are in the best position to make the decision for today under today's conditions.

If everyone followed Waze directions and never drove on a new route, Waze might never learn that route is better. When Waze is recording your travels, every trip helps make Waze better for everyone. That includes when you think you know better. Sometimes you will be right. And sometimes you will be wrong. But it is better to find out you are wrong so you can choose the better route. And when you are right, all Waze users benefit by the sharing of your knowledge.