Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

google maps v3 convert address to latitude

I'm simply trying to convert a form field from street address => lat/long. Ideally, the user enters in either a zipcode or a full street address and a hidden field gets populated with the corresponding latitude/longitude. No map creation needed. No directions needed. Just a simple conversion. Any ideas?

like image 405
tdblanchard Avatar asked Feb 03 '26 07:02

tdblanchard


1 Answers

You can use the Google Maps Geocoding web service. However, note that per the terms of service, you must display the results on a Google Map.

If you want to use JavaScript, you can use the Google Maps API Geocoder.

like image 113
andresf Avatar answered Feb 06 '26 06:02

andresf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!