Google Maps Rock, The Google Maps API Rocks More

We don’t need to hack Google Maps anymore. Now that Google has released a public maps API, we can make more reliable map-dependent apps (which will now have better browser compatibility, thank you). Within a few minutes of signing up for a maps API key I had put together the following of the Nevada Test Site Tour.

Yeah, click the satellite button, scroll, zoom… It’s real.

The API is all JavaScript, but I use a bit of PHP to iterate through an array of points and generate the code that puts the lines and pins on the map.

The most frustrating development with the Google Maps API is that each developer key is limited to a certain hostname and directory. It’s sensitive to things like “maisonbisson.com” instead of “maisonbisson.com” or “maisonbisson.com/post/10594” instead of “maisonbisson.com/blog/” . That’s why this is loading in an iframe.

Thanks to The Unofficial Google Weblog for the tip that the API was released yesterday. As a minor coincidence, Yahoo! also released their maps API this week. Damn.