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...
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 example is centred at Los Angeles. Traffic Layer data in not available for India as of now. Hope it will be some day soon...
Traffic Color Description:
If available in your area, real-time traffic conditions will be displayed over the road as color-coded lines. The colors indicate the speed of traffic on the road compared to free-flowing conditions. For highways, the colors roughly equate to:
- Green: more than 50 mph or 80 kph.
- Yellow: 25-50 mph or 40-80 kph.
- Red: less than 25 mph or 40 kph.
- Red/Black: very slow, stop-and-go traffic.
- Gray: No data currently available.
Hi Shreerang,
ReplyDeletei'm pretty new to the GIS world (though I've always been using Google Maps from my mobile in India).
I'veI've been glancing at your works. Impressive and innovative are the first 2 words that stike my thoughts when I have to describe yoru work.
About the "Real time traffic layer", I wonder what would really be the use of this when Google maps already has it as a layer in their phone/web ?
Hi Vishu,
ReplyDeleteHappy to hear that you found my work impressive.
About the "Real time traffic layer"...This is very useful as the information keeps on updating at run-time. As the traffic on a particular road increases or decreases the map layer updates itself. So you can have a look at the traffic status before you move from your place to your destination and then decide accordingly as to which route would be the best for the ride...
Superb website to learn something new you can check
ReplyDeleteBest Happy Diwali Wishes and Quotes From GreetingsMag
https://greetingsmag.com/happy-diwali-wishes/
https://greetingsmag.com/190-happy-diwali-whatsapp-status-best-diwali-wishes-whats-app-status/
https://greetingsmag.com/happy-diwali-quotes-in-english/
https://greetingsmag.com/best-happy-diwali-wishes/
https://greetingsmag.com/happy-diwali/
https://greetingsmag.com/happy-diwali-2019-wishes-in-hindi/
https://greetingsmag.com/happy-diwali-quotes/