phpgeolocationlatitude-longitudestreet-address

PHP Geolocation (Street Address -> Lat-Long)


I need some type of PHP thingie so that I can input a few street-addresses
(such as: 123 Fake Street, Faketown, FA, 98765) and then it will give me the coordinates (latitude and longitude) of these addresses.
I need this to be completely dynamic (as I will be fetching these addresses from a DataBase).

Where can I find something that can do this?


Solution

  • The process of taking an address and turning it into lat/lng is called "Geocoding". I would look at the Google Geocode API.

    https://developers.google.com/maps/documentation/geocoding/