Is there a google maps api that will allow you to pass in a location name and it will return coordinates that point to the location on googlemaps?
Here is the The Google Geocoding API
Here is a example request:
http://maps.googleapis.com/maps/api/geocode/xml?address=Berlin&sensor=false
You can filter the result: for geometry/location/lat and lng
<GeocodeResponse>
<status>OK</status>
<result>
<type>locality</type>
<type>political</type>
<formatted_address>Berlin, Deutschland</formatted_address>
[…]
<geometry>
<location>
<lat>52.5234051</lat>
<lng>13.4113999</lng>
</location>
<location_type>APPROXIMATE</location_type>
<viewport>[…]</viewport>
<bounds>[…]</bounds>
</geometry>
</result>
</GeocodeResponse>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With