Get Google Maps Address from Latitude and Longitude in PHP


In this article, you’ll know how to get address from latitude and longitude using Google Maps API in PHP. Here we’ll provide a simple PHP script to get location from latitude and longitude. The whole script combines into a PHP function and you only need to use this function to find address from latitude and longitude.

getAddress() function accept two parameters ($latitude,$longitude), you need to provide the latitude and longitude from where you want to get the address. This function returns the address of based on given latitude and longitude if found, otherwise, return FALSE.

getAddress() function is given below:


Use getAddress() function like the following.

To specify a Google API key in your request, include it as the value of a key parameter.


Leave A Reply

Your email address will not be published.