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.

Recommended for You

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…

jQuery Mobile's Next Big Step

Spatial Unlimited changes to The UI Dev


After being hosted on blogger 😣 for the last 6 years 📆, this page has finally been moved to Github.io
This means a few things for you, dear reader!

You will be redirected to the new page shortly! ⏩ ⏩ ⏩


Once crapy HTML is now better looking Markdown! 😍 😍


The entire blog is a Github repo! 😍 😍


Spatial Unlimited is now The UI Dev 😍 😍


Curious scenes in Google Map Satellite view...

Most of you'll must have already seen many images like air crafts, brand logos, animals captured in the Google Satellite images or Google Earth for that matter. I am going to point out some that I found amazing...

Italy's Big Pink Bunny - Google Map Link
Australia's Blue Tree - Google Map Link
 Nevada's Desert Crop Circle - Google Map Link
 England's Dino Maze - Google Map Link
Oregon's Firefox Crop Circle - Google Map Link
             The above images are just a few of the many amazing Google Satellite images available on the web...Hope you enjoy them! Feel free to post links and images similar to these, here...

Update - March 15, 2012:

        I just came across the following freaky street view in Google Maps. I am sharing the image and the actual Google link here. You will need to enable the street view - i.e. drop the yellow pegman on the Google Map at the pointer location and then check out the sky! Let me know what you think - Ghost or what?

Ghost …

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.

Google Map's Real-Time Traffic Layer...

You can now check the traffic condition on the road before you leave for work, or a party or to your friend's place. Google's Traffic layer shows the traffic conditions in your area - LIVE!!! Live traffic data is available in major cities in the United States, France, Britain, Canada and Australia, with new cities and countries frequently added. The Google Maps API allows you to add real-time traffic information (where supported) to your maps using the TrafficLayer object. Traffic information is provided for the time at which the request is made. Consult this spreadsheet to determine traffic coverage support.

    Let us now have a look at the Google Maps API - Trafiic Layer example. Copy the following code in a simple text file and save it as html. Click on this html file and it will open in your default browser. You will then see the traffic conditions in your area - LIVE...



    The output of the above code looks as seen in the result section above. The map in this examp…