How do maps apps (Waze, Google maps, etc) actually calculate best routes and time for distance travelled? Is it all from tracking?

380 views

How do maps apps (Waze, Google maps, etc) actually calculate best routes and time for distance travelled? Is it all from tracking?

In: 22

6 Answers

Anonymous 0 Comments

They will already have static information like the speed limits of different roads, pre-planned road closures, and the usual traffic conditions at different times, and can use that to provisionally tell you what is probably the best route between any given A and B. That’s what you’ll get if you look a route up in advance.

But when planning an immediate route, they will also be tracking the live progress of other users who are ahead of you on those routes, and add that to their static intelligence, to produce an estimate of what route would be best for you right now.

Of course, they can be wrong. Once google sent me into “5 minute congestion”. The road had actually just been closed 5 minutes earlier, and I was there for 2 hours in the end. But because the road had only just been closed, all Google saw was that other users had been slowed down by 5 minutes. Users can also submit reports, but otherwise, Google doesn’t (yet) have the technology to detect exactly what’s going on (eg traffic stopped, police cars on site) and tell you to get the hell out of there accordingly.

Anonymous 0 Comments

GPS uses the satellites explicitly for guiding you in whichever direction you need to go. I believe it can see if there are areas that are over saturated with cars and then equates that to an accident/traffic.

Time for distance travelled uses simple math.

Speed = Time x Distance

Time = Speed / Distance

Distance = Speed / Time

If you are looking for distance travelled, the GPS relies on the satellite to tell it how fast you are travelling and then calculate using the above formula to “estimate” how much longer it’s going to take for you to get to your destination.

Also the Waze app uses human intervention to tell it if something happens. For example, if there’s an accident, people usually pin the location and say there’s an accident here. Once the accident clears up, people update it to say that the accident cleared up etc.

Anonymous 0 Comments

It’s more or less the same technology that helps get your internet traffic from your computer to Reddit’s servers. It’s a routing protocol.

If they use traffic data, all they’re doing is calculating the “cost” of taking a particular stretch of road. After that, you take those costs and throw them into a routing algorithm. The idea of a routing algorithm is that it keeps reaching out from the road that has the lowest cost.

The particular algorithm (or variation of) that maps use will also add a metric that is basically a measure of “Are we actually getting closer to your target?”. This keeps the rather open routing problem focused on getting to one destination. Here’s a video with a good example on it.

Anonymous 0 Comments

There is a kind of math called graph theory. It deals with how points are connected to their neighbors. There’s ways to figure out the optimal steps between points. These ways let you assign weights to different steps in the path. This way, it’s fairly easy to calculate the fastest (or shortest) way to get from A to B.

Anonymous 0 Comments

There are millions of smart phone users with map apps installed, and their movements can be tracked and used to calculate travel times, best route.

Anonymous 0 Comments

It’s partly from knowing the speed limits of the road, partly from mass tracking, and partly from having access to information about roads under construction.

* **Speed limits:** If you can get from Point A to Point B via a freeway or via a surface street in roughly the same distance, the app knows that the freeway will be faster because it has a faster speed limit.
* **Tracking:** The app’s server can determine from other people’s GPS data if there’s a traffic jam. If there are a bunch of phones moving slowly or sitting still in the middle of the road, then the server assumes there’s a traffic jam and tells the app to try find the next-best route. (Hilariously, [an artist took advantage of this last year by walking around with a little red wagon full of rented cell phones and “burner” SIM cards to fake a traffic jam](https://www.vice.com/en/article/9393w7/this-man-created-traffic-jams-on-google-maps-using-a-red-wagon-full-of-phones).)
* **Access to road closure information:** Sometimes Google is given or is able to access information on road closures. That way, even though the mass tracking doesn’t show any traffic jams on the closed road, the app won’t bother trying to route you that way.