eli5 -How does gps software calculate drive time?

535 views

I understand mapping the shortest routes, tollways vs non tollways, ect but how is programming like google maps able to determine the amount of time your commute will take due to traffic patterns and congestion?

In: 13

8 Answers

Anonymous 0 Comments

The system stores the map as a set of intersections and lines in between them for the roads. It does this even for things like on ramps. (In computer science this is called a graph).

As people drive over all these little segments using their maps, they send information back to the map system saying how long it took them.

Once the route is chosen, it can look up all the little segments and calculate a time.

That’s the basics. There’s more they can do, like estimate time at lights, or keep track of how much time it takes over the course of each day, and it can estimate ahead of time what it will be like.

You are viewing 1 out of 8 answers, click here to view all answers.