Jul
30th

Google Map API: Find, Drag and Update My Location

Happy New Year! Marketing Technology finds and reports on the latest technology that will enable your business to effectively market to your audience, for acquisition or retention strategies. Subscribe now the Marketing Technology Blog RSS feed or to the Marketing Technology Email to have new content sent directly to your inbox. You'll also find my other business blog helpful, Social Media Domination.

Click Here to see!I purchased Google Map Hacks yesterday but am a little disappointed in the book. It’s not the fault of the author, but the book is pretty much already out of date since the release of Google’s Geocoder and Google’s version 2 of it’s API.

There were quite a few links in the books so I was able to check out a bunch of sites and see how they’ve adapted to the new releases. I am building out map integration for a new site that I’m building. The first step will be for a local to be able to put in their address on a map and then update their location if the marker isn’t at the perfect position.

Some enhancements I’ve done:

  • Using the V2 Geocoder
  • Using the drag functionality on the map
  • Updating the latitude and longitude in a form field (these can be hidden of course)
  • Rounding the latitude and longitude to a 8 digit precision
  • Disabling the form so the person can’t add more than one location

Click HERE for a working DEMO.

I designed my own markers for an advanced option. Please leave a comment to this entry if you’re ‘borrowing’ my code or if you enhance it somehow. I’d love to see what you are going to do. My next steps are for the user to select what kind of marker they would like as well as putting a thumbnail image on the info window.

Feel free to use the code - you can donate a thank-you to my Paypal.

Support this site!
SHARETHIS.addEntry({ title: "Google Map API: Find, Drag and Update My Location", url: "http://marketingtechblog.com/2006/07/30/google-map-api-find-and-update-my-location/" });

RSS feed | Trackback URI

5 Comments »

Comment by Douglas Karr
2006-12-23 22:50:17

I moved some of my site pages around. Since I just launched Address Fix I’ve pointed any references to that site.
 
Comment by Aswin van Braam
2007-03-02 03:44:22

Little typo in the URL http://www.addressfix.com,

Remove the “,” and the link works :P

BTW, great project. :)

Comment by Douglas Karr
2007-03-02 08:26:36

Thanks, Aswin - I fixed it! That was a fun project.
 
 
Comment by Lary
2007-08-24 23:41:54

Hey, Great job on this project! You said that we may borrow and improve on the code, but where is it?

-Lary

Comment by Douglas Karr
2007-08-25 10:35:40

Hi Lary,

The code is all in JavaScript and readily accessible through the site:
http://www.addressfix.com/includes/addressfix.js

Cheers!
Doug

 
 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

My Comment Policy: I moderate comments. Please be patient:

  • Spam will happily be destroyed.
  • Use your real name, not some keywords. Otherwise it will be destroyed.
  • Mean comments aren't necessary. If I don't post them I will reply personally to let you know why.
  • Lewd comments will be edited, I don't want my readers leaving because of offensive content.
Great debate, criticism and colorful commentary is always appreciated and approved!