Search code examples
javascriptgoogle-mapsgoogle-geocoder

Google Maps + Google Local Search generate lat/long from uk postcode


Is there anyway i can put 2 hidden fields in a form and automatically put the Lat/Long into them from the user inputting a post code?

I don't really want to rely on the user dragging a marker on the Google map to plot the location.

Thanks in advance

Robbie


Solution

  • Got it sorted by mashing this page - http://gmaps-samples-v3.googlecode.com/svn/trunk/geocoder/getlatlng.html

    Works really well.