The algorithm used by Google Maps?

  • Thread starter Thread starter michinobu
  • Start date Start date
  • Tags Tags
    Algorithm Google
AI Thread Summary
Google Maps sometimes suggests routes that may seem inefficient, such as taking a right turn and making a U-turn instead of a left turn. This can occur due to various factors in the routing algorithms used by the application. For instance, the map data might indicate that left turns are not allowed, or the algorithm may prioritize minimizing left turns to enhance traffic flow, particularly for delivery vehicles. Additionally, routing systems often favor major roads over minor ones, which can lead to longer distances being calculated as faster routes. The discussion also touches on the underlying technology, mentioning Dijkstra's algorithm, although it notes that most mapping services incorporate additional features beyond this basic algorithm.
michinobu
Messages
53
Reaction score
0
I was using at Google Earth, and used it to look at some directions when I noticed that program recommended that I take a right and drive down this road, then take a u-turn and drive past from where I turned originally, when I could've just simply taken a left instead.

Does anyone know how Google Maps uses finds directions for someone? And, why would the application recommend that I take an unnecessary route like this? Is the software, by any chance, open-sourced as well?
 
Technology news on Phys.org
The general concept is called "djykstra algorithm" but most mapping systems have a few extra features on top.

The map data might indicate no left runs allowed.
Some routing algorithms, especialy for delivery trucks, are tuned to reduce left turns (I assume you are in a country that drives on the right) because these waste time and disrupt traffic flow.
They are generaly biased to maximise the time you spend on major roads compared to minor ones - so a longer (distance) journey might be faster.
 
michinobu said:
I was using at Google Earth, and used it to look at some directions when I noticed that program recommended that I take a right and drive down this road, then take a u-turn and drive past from where I turned originally, when I could've just simply taken a left instead.

I noticed the same thing a few months ago when I had a training session in Columbus.
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...

Similar threads

Replies
13
Views
4K
Replies
6
Views
2K
Replies
10
Views
1K
Replies
1
Views
1K
Replies
17
Views
3K
Replies
1
Views
2K
Back
Top