Skip to main content

Where does Google get it's live traffic data from?

Referring to a post that I wrote earlier, Google’s - Live traffic Layer, ever wondered how Google collected this data? I was wondering the other day, how Google received live data to display it on their maps as a layer! I looked up the web and found something very interesting and am sharing the same with you all.

As we all know, the traffic layer is available most accurately in several states in USA. Most major metro areas in the US have sensors embedded in their highways. These sensors track real time traffic data. Easy to miss at high speeds (hopefully anyway, traffic permitting), more commonly noticed may be the similar sensors that often exist at many busy intersections that help the traffic lights most efficiently let the most amount of people through. The information from these tracking sensors is reported back to the Department of Transportation (DOT). The DOT uses this data to update some of the digital signs that report traffic conditions in many metro areas. They also openly share much of this frequently updated data out, which is how Google reportedly gets this data for the major highways in the metro areas it offers traffic reporting for.

Google has now also crowd sourced the collection of real time traffic data via mobile phones. The way in which they are doing this is pretty cool, and may prove to be a way to some day provide quality real time traffic data for all roadways. If you have a Google Maps installed on a mobile phone with GPS capabilities enabled, your location can be transmitted to Google in real time, allowing them to determine the fact that you are on a particular road and traveling at a certain pace. When Google combines your speed with the speed of other phones on the road, across thousands of phones moving around a city at any given time, they can get a pretty good picture of live traffic conditions. Google continuously combines this data and sends it back to you for free in the Google Maps traffic layers. In this way, Google can now offer traffic reports for secondary roadways, routes not necessarily containing DOT sensors.

We now have a list of all the places where Google shows live traffic information. Check out this awesome map from Google, here. You can read more and see the Google’s traffic layer in action here. If you have read so far, I am sure you would also like to know more about the Google Bicycle routes layer.

Comments

  1. Yes, this is what is expected. I have been testing google traffic for some time now in Italy. It *often* gives an indication of the traffic conditions in near real-time. However sometimes it gets it awfully wrong. I am very curious about where this incorrect info comes from. Also there is no data for most of the roads in Italy, and the data is available for small sections of road here and there in the road network. I am very curious about why data is unavailable for most of the roads and only available in this patchy form.
    George Mu'ammar @GeoMmm

    ReplyDelete
    Replies
    1. Hi George.

      The traffic data is not widely available in many countries and that is because of lack of available resource and lot of legal government permissions and stuff go into the actually mapping for companies.

      Also the contribution from the crowd (crowd-sourcing) is not very good in several countries which also results in poor details on the Google Maps and associated services.

      Hope this answers your query. Please keep posting your feedback. Happy to hear from you.

      Regards,
      Shreerang
      Like us on Facebook at https://www.facebook.com/pages/Spatial-Unlimited/185149371538692

      Delete
  2. Hi,

    Is there any free API for developers which can provide real time traffic speed or calculate time required to travel two points ?

    If there is any other possible way please share me at deep21c@gmail.com

    Thanks,
    Deepchand Singh

    ReplyDelete
    Replies
    1. Hi Deep.

      Sorry for replying late. As far as the traffic data API goes there are none as far as I know. Please correct me if you have found any.

      For the distance calculation and time required to move from point A to B you can use the Google Distance API.

      Hope this helps. I would be more than happy to answer any more queries.

      Regards,
      Shreerang.
      Like us on Facebook at https://www.facebook.com/pages/Spatial-Unlimited/185149371538692

      Delete
  3. Hi,
    Thanks for this post. Could you please point to some references from where you got this information? I know several agencies that provide traffic data: PeMS (loop detector data for freeways only), Inrix, DoT, Navteq, etc. Was just wondering which of those sources Google employs.
    Best,
    Ish

    ReplyDelete
    Replies
    1. Hi Ish.

      I know one source for sure and that is Inrix for traffic data. Inrix currently offers data for around 22 countries across North America and Europe. Inrix’s other partners include Audi AG, ADAC, ALK, ANWB, Coyote, the Ford Motor Company, I-95 Coalition, MapQuest, Microsoft, NAVIGON, Tele Atlas, Telmap, TeleNav, Texas Transportation Institute and Toyota.

      Hope this helps.

      Regards,
      Shreerang
      Like us on Facebook at https://www.facebook.com/pages/Spatial-Unlimited/185149371538692

      Delete
  4. Is there an API we can use (or a KML Network feed) that would plot the green/yellow/red traffic conditions? Or is there an RSS/Atom feed that would provide the data (which we could then transform into a KML feed for map plotting)?

    essentially I'm looking for sources (free is best) that would give the data in a machine-readable format to consume and either produce KML or consume KML and plot to a google map.

    Thoughts? Thank you Shreerang!

    ReplyDelete
    Replies
    1. Hi...I don't think there would be any such data that would be freely available. Having said so, I will check if I find any. If you find any, please post it here!

      Regards,
      Shreerang
      Like us on Facebook at https://www.facebook.com/pages/Spatial-Unlimited/185149371538692

      Delete
  5. Hi is there any way, someone have access to Google real-time traffic data. I'm working on my Master Theses, comparing City traffic data with google. Would you please help me. My email is OMIDMCSE@HOTMAIL.COM thank you

    ReplyDelete
  6. This is false information .

    Check out this link if you want to really know how Google obtains its data.

    http://googleblog.blogspot.ca/2009/08/bright-side-of-sitting-in-traffic.html

    ReplyDelete
  7. This isnt false Wth are you talking about? Google's article backs up exactly what was said here. Either back up your statements or stop making arrogant comments. You aren't helping anyone.

    ReplyDelete
  8. what they hell is that download the plugin screen crawl you're putting up?

    ReplyDelete

Post a Comment

Please leave your comments here...

Recommended for You

Playing with the markers and info window bubbles...

In the last few posts, we have seen some marker examples and some information window examples. Now, lets do something interesting combining these two things. Just writing that "This is an info window" in the information bubble is not very interesting! And I know this...Have gone through the same phase!

    So, today we will do something interesting! We will display the latitude- longitude co-ordinates of the point that the user clicks on the map! Doing this is not at all complex! Copy paste the following code and you will see for yourself a map coming to life!


    The output of the above code looks as seen in the result section above! If you have any queries regarding the above code please comment on the blog post or feel free to contact me at my mail ID.

Retriving co-ordinates...

We have seen 2 Google Maps API v3 examples wherein we have retrieved the latitude-longitude co-ordinates of the point of click on the map. In the first example we have displayed the co-ordinates in the information window and in the second, we have displayed the co-ordinates in a form in the information window.

        Today we will create a code to retrieve the latitude longitude co-ordinates in a text box while simultaneously a marker appears on the map as well. So, here goes the code.

<html>
<head>
<title>
Google Maps API v3 - Adding marker on Click and retrieving the co-ordinates in a text box
</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var map;    //When using event as a parameter to a function declare map, strictly as a global variable
function initialize()
{
    var myLatlng = new google.maps.LatLng(28.635157…

Geodesic Polyline

Today we will have a look at a very interesting polyline example - "The geodesic polyline". Now the first question that will pop is "What is geodesic?". Mathematically, geodesic means the shortest line between two points on a mathematically defined surface, as a straight line on a plain or an arc of a great circle or sphere.

    The next question after reading the above definition is clearly, "Why do we need geodesic polylines?" and that would be followed up with "What is this Great Circle?". We will discuss this first, before we move on to the actual example today. The example is very very similar to the normal polyline example, with just a small change.

    Having said so, I will now try to explain why we need a geodesic polyline? The shortest distance between two locations on the earth is rarely a straight line as the earth is roughly spherical in nature. So any two points on the earth, even if they are very close lie on a curve and not …

Form info window

Today we will look at a Google Maps API v3 example to add a form in the information bubble! This is usually required when we wish to accept some data/information from the user! This data can be saved to a server in the form of an XML file or a database! The information can then be retrieved back at a later stage, when necessary!

         In this example we will only look at form in the information bubble! The connectivity part with the server will be discussed in another post! So, today's code snippet is as seen below!

<html>
<head>
<title>
Google Maps API v3 - Adding marker and info window on Click and creating a form in the infowindow with the lat-lng information in it.
</title>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
var map;    //When using event as a parameter to a function declare map, strictly as a global var…

Difference between word-break: break-all versus word-wrap: break-word

The 2 CSS properties word-break: break-all and word-wrap: break-word appear to work in the same way or generate the same output, but there is a slight difference between the 2 and we will be discussing these differences today.



    Take a look at the example above. The difference is quite evident, however I will try to explain it further.

word-break: break-all Irrespective of whether it’s a continuous word or many words, break-all breaks them up at the edge of the width limit even within the characters of the same word
word-wrap: break-word This will wrap long words onto the next line.break-word adjusts different words so that they do not break in the middle.
    So if you have many fixed-size spans which get content dynamically, you might just prefer using word-wrap: break-word, as that way only the continuous words are broken in between, and in case it’s a sentence comprising many words, the spaces are adjusted to get intact words (no break within a word).     In case you want to exp…