I have a postcode held in a field with ‘addr_postcode’ I need to get the Lat / Long for this post code and write the values to ‘adds_c_lat’ and ‘adds_c_long’ what is the best way to achieve this?
I think I need to use the Google API to do this as per this example but I cannot see how to get each value separately and write it into the fields
Example: http://viralpatel.net/blogs/2009/07/google-map-geocoding-tutorial-example.html
Thanks
Justin
So the example code you gave from the tutorial has this.
All i am doing is just using jquery to check to see if the post code meets the requirements on keypress and on change, if there is a valid post code in there, then i simply fire the goeCode method which will fill in the data fields in the html.