Tiger Hacks: Replace Mapquest with Google Maps in Phone Book Widget
Does anyone still use Mapquest? All the cool kids I know use Google Maps. Hes Nikke is obviously one of the cool kids. I know this because he didn't waste any time at all figuring out how to make T Phone Book Widget use Google Maps. His how-to is posted over at MacOSXHints.com. Be sure to read the comments below the hint, as there are some modifications needed to get it to work properly.
Here's the replacement block of code I used, which so far works beautifully:
var mapURL = "http://maps.google.com/maps?q=";//The following RegEx removes the unit or suite number //that otherwise breaks Google MapsmapURL += URLEncode( singleResult.address.replace(/(\s*#.*$)/, "") );mapURL += ",+"; mapURL += URLEncode( singleResult.zip );// add "&t=k" if you want sat viewmapURL += "&hl=en";
Check out Hes' hint for full instructions.