malevolent design weblog 01 May 2005 Add Google Maps’ Directions to Your Site Google Maps has already spawned some interesting hacking and sightseeing, and recently launched a UK service. If you have a business which gets visitors to its premises you’ve probably created some kind of map yourself and maybe tried to write some generalised directions, but it can be tricky to get right. Using a simple form on your site you can also offer users a personalised map and directions courtesy of Google Maps. Just modify the appropriate code snippet below to include the destination and any extra formatting markup needed. (Sorry if this is old news or seems obvious; I’ve not seen it covered anywhere and it won’t be obvious for most people.) (Update: they’ve now released the Google Maps API for embedding maps and adding your own data.) USA
<!--Start Address Code --><p><form target="_blank" action="http://maps.google.com/maps" method="get"><p><label for="saddr">From: </label> <input name="saddr" id="saddr" type="text" /><input value="Go" type="submit" /> <input name="daddr" value="36.120232,-78.721644" type="hidden" /> <input name="hl" value="en" type="hidden" /></p></form></p><p>Enter Start Address and Click "Go"</p><p><br/><!--End Address Code -->
Reality Concepts, SEO, Web Development and Web Design.