Heat Maps for Google Maps - (a.k.a GeoIQ mashup)

October 11th, 2006by Sean Gorman

So it has been a while since we posted, but the rationale was we’d wait till we had a working example of moving past push pins. This week we got our GeoIQ API working with the Google Maps API and have the first set of screen shots to show. One of the things we thought is really missing from web mapping applications, right now, is the ability to do geographic analysis. Even the ability to make basic decisions like - is location “A” better than location “B” is missing. With this first simple idea in mind we’ve built a quick mashup with Google Maps. We took our heat mapping API and integrated it with a split screen Google Maps viewer. That way you can look at two locations at the same time and compare them.

We wanted a fun data set to play around with and thought traffic congestion/delay would be interesting. The Bureau of Transportation Statistics (BTS) has a cool data set with average traffic delay for all the US highways available, so we threw that in. One of the problems with pushpins or polylines in Google Maps (and others) is there is no way to visualize what are the high value or low value pushpins. In this case, which road has high traffic delay and which roads have low traffic delay. We do this with a heat map (similar to Zillow, Google Adsense, etc.) that can be dynamically refactored as you zoom in/out (see previous post). We added to this heat map tool a concentration index - which gives you a score of the value (weight) of your pushpins and how closely they are located together. Once you have the score you can see if location “A” is better than location “B”. In this case is traffic delay more concentrated in location “A” or location “B”

A comparison of the concentration of traffic delay in San Francisco and Los Angeles

The GeoIQ API creates a heat map based on an index that measures the amount of traffic delay on the roads and how closely that road delay is located to other delayed roads. The higher the delay and the closer together the roads, the hotter the map and the higher the score. The score ranges between 0 and 1. If all the traffic delay and highways were concentrated at one single location the score would 1 and if there was no traffic delay the score would be 0. In the map above traffic delay for Los Angeles in .26 and for San Francisco it is .15, so if you believe the BTS data traffic, LA is about twice as bad as SF. Lets go east coast - NYC vs. DC.

A comparison of the concentration of traffic delay in New York and Washington DC

According to this score NYC is a little worse than DC. The cool thing about the technology is you can run these comparisons on the fly as you zoom in and out of the map. So - let’s compare two big traffic bottlenecks in DC to see which is worse the I-270 Spur or I-95 Mixing Bowl.

A comparison of the concentration of traffic delay at the I-270 Spur and the I-95 mixing bowl - both in Washington DC

The Spur looks to get the better of the Mixing Bowl. In the app you can do this with any data set or mash up multiple data sets to solve a variety of problems surround location decisions. We’ll have more to come so stay tuned if this looks interesting.

Popularity: 100% [?]

33 Responses to “Heat Maps for Google Maps - (a.k.a GeoIQ mashup)”

  1. Zen Wizard Says:

    Cool stuff!

  2. DofAM Says:

    Looks great, definitely a big increase in functionality over traditional GEarth mash-ups.

  3. Eric Says:

    Very fun! When will there be a demo up that we can play with? I’d like to try testing some of my own locations.

  4. Hadley Says:

    That looks like a really nice idea, but I think your pictures illustrate some of the problems with heatmaps - it’s very hard to convert that colour scale back to the original values. For example, comparing the spur and the mixing bowl, the spur has a lower value (0.16) but it looks like a brighter center point. I’d recommend experimenting with using other ways of representing the same data. For example, you could place points at each measurement location and then make the size of the point proportional to the amount of traffic (aka a bubble chart). This would also remove the uncertainty over whether an area has no traffic, or no measurements.

    I’m also not sure about your smoothing algorithm - it would be nice (but difficult) to take into account the actual geography of the roads, traffic density falls off abruptly on the sides of the road, not gradually!

  5. Sean Gorman Says:

    Heat maps (map algebra - raster analysis) are one of the spatial tools you can use for geographic analysis of data. It does have its strengths and weaknesses, just like any other analytic. Although I do think we should clear up a little bit what those are.

    Sure you could drop proportional symbols on top of the map - it is not terribly hard to do, and we’ll probably throw it in for a later release. You have a nice review of the benefits of proportional symbols, but there is also some drawback that heatmaps do much better. Proportional symbols do not work very well for polyline data, but regardless it would tell you the same thing as the heat map - the ramps connecting the major arteries of the I-270 spur (according to BTS) do not have as much traffic. That said sometimes proportional symbols are a better choice for a map, and that is up to the user to decide. Let’s not forget before today there were zero choices for Google Maps.

    What you cannot get with proportional symbols is a score to compare two location. Secondly you cannot not integrate more than one variable to make a location decision. Thirdly they scale terribly - what happen when you try to draw 80,000 bubbles at the national level for the entire highway system. Lastly, you cannot do any of the fancy map algebra analytics like looking at temporal changes.

    To answer the last question - you can take into account distance with smoothing algorithm. Spatial mathematics (splining, kriging, kernel density) to make heat maps require that you set a distance threshold. We do this dynamically as you zoom in so

  6. Sean Gorman Says:

    you get an increasing about of detail as you go. You can also set it yourself with a slide bar. Since it is a Gaussian distance decay function it will search out for attributed data as far as you tell it to. The result is a surface not a line. If we had geo-referenced data on different delays for different lanes you could see that, but BTS only has one figure for each road. The distance decay fade does not mean there is delay in the medians or on the shoulders it is just the way the mathematics works.

    You are of course free to use whatever tool you would like. We are just trying to make more tools available to the public so they pick the right one to solve the problem at hand.

    Re-reading this post also makes me realize we are really getting into the academic nitty gritty of analytics, and our whole goal was for users not have to deal with that level of detail to solve a problem. We are happy to explain how we do thing and the mathematics and rigor behind them at any point so feel free to ask.

  7. www.techtagg.com - See Tech Taggers view on this story! Says:

    Heat Maps for Google Maps

    "So it has been a while since we posted, but the rationale was we ’d wait till we had a working example of moving past push pins. This week we got our GeoIQ API working with the Google Maps API and have the first set of screen shots to show."

  8. James Jones Says:

    I think this was talked on eUNKNOWN and they talked how it is not 100 percent correct or how it would not be 100 percent correct or somthing like that.

  9. Jason D Says:

    Uhhhh yeah… anyone who says the Spur is worse than the Mixing Bowl needs to have their head examined (or logic reprogrammed). Just a thought from someone who actually drives the area.

  10. links for 2006-10-13 at Metaverse Territories Says:

    […] Heat Maps for Google Maps The GeoIQ API creates a heat map based on an index that measures the amount of traffic delay on the roads and how closely that road delay is located to other delayed roads. (tags: googlemaps maps mashup data database visualisation) […]

  11. Prashanth Says:

    Another thought that occured to me was the use of a time dimension.
    The use of a slider could provide you with the ability to “slide” across a timeperiod (a day, a week, perhaps more). The concentrations across a time scale would be of particular interest to people who are also trying to perform a trend analysis. Just my initial thought.
    Interesting approach -> can be applied to a whole gamut of GIS data; pollen, pollution levels, even by grocery stores to evaluate product sale.

  12. Stephen G Says:

    Here’s a color-coded / thematic map integrated with Google Maps. Includes rollover / hover text.
    http://www.gmapsgis.com/examples/2004election.php

  13. True Says:

    Good post: the only thing better that knowing, is knowing together.

  14. its about time» Blog Archive » links for 2006-10-16 Says:

    […] Moving Past Push Pins » Blog Archive » Heat Maps for Google Maps - (a.k.a GeoIQ mashup) (tags: cool google Maps Googlemaps mashup heatmap visualization traffic) […]

  15. 7.5th Floor » Blog Archive » Heat Maps on Google Maps with GeoIQ Says:

    […] FortiusOne is about to release (with an API trial key) their GeoIQ API that works on top of the Google Maps API. GeoIQ should provide the geographic analysis facilities that Google Maps lacks. Their first idea has been to integrate their heat mapping API. In their blog, they provide an example of heat maps of traffic congestion based on the US Bureau of Transportation Statistics. […]

  16. EveryDigg » Blog Archive » Heat Maps for Google Maps Says:

    […] "So it has been a while since we posted, but the rationale was we ’d wait till we had a working example of moving past push pins. This week we got our GeoIQ API working with the Google Maps API and have the first set of screen shots to show."read more | digg story […]

  17. Philip Ganchev Says:

    Awesome! Later, things like road conditions can be modeled more precisely. For example, a highway may be somewhat congested but still move faster than a small road. And the congestion may be only in one direction.

  18. Expired Domain Names Says:

    Good post: the only thing better that knowing, is knowing together.

  19. Adventure Around the Web: Adventures in ….adventure - Travel News - Adventure Logue Says:

    […] Another cool way to waste time: Heat Maps for Google Maps - (a.k.a GeoIQ mashup) […]

  20. maps » Comment on Heat Maps for Google Maps - (aka GeoIQ mashup) by iris Says:

    […] Original post by unknown […]

  21. maps » Comment on Heat Maps for Google Maps - (aka GeoIQ mashup) by maps … Says:

    […] Original post by unknown […]

  22. black touch Says:

  23. Lountexatalex Says:

    There’s one special secret Sale link on Amazon:

    http://tinyurl.com/2r7ldr

    [b]This is open every Friday and ONLY on Fridays! [/b]

    You can find very good discounts here, although some Fridays you can really get
    lucky and make off like an Amazon bandit - I´ve seen discounts there as low as 75%
    off sticker Price.

  24. Ken Says:

    So zillow has a heat map, but it is a still shot of the market prices. Has anyone ever tried to apply the dimension of time to this, rendering a market price rate of change? For example… market trend over the past month, the past quarter, 6 months, year, 5 years, etc. If anyone knows how this could be done, PLEASE contact me. I am vitally hungry for this information!

  25. Dynamic correspondent Says:

    I was playing poker the other night with Tarot cards I got a full house and 4 people died — Steven Wright

  26. BradiGuns Says:

    Hello
    Good news guys
    I here I with you
    http://cialis20mg.org

  27. Heat Maps for Google Maps « Design News Says:

    […] read more | digg story […]

  28. Frezzoa Says:

    Hello Men’s
    you must trasted

  29. TaferyPupki Says:

    Hello
    stgdgedr
    restartos

  30. katie Says:

    hi wats upimon a laptop and hi

  31. Cheap Flomax Says:

    Prescription drugs without a prescription and generic medications. Canadian online medicine.
    http://canadian-online-medicine.com

  32. wateryahooya Says:

    site google home green mail ibm

  33. HotabitteHind Says:

    Sounds crazy. I like the way you react to my adventures techniques I have a nice joke. What does a dog get when it finishes obedience school? A pet degree.

Leave a Reply