I am creating a store locator. What is the best way for the user to inputs its location. I need some way to convert the user input into latitude and longitude.
How do I go from that the user types something in to converting it into latitude and longitude.
Thanks
First, include the initialization code on page load:
Trigger a function using the onclick attribute or submission of a form.
Then in the function you trigger drop this in (note: this uses jQuery):
Then geocode the address in the text box using the Google Geocoder API: