How to Find Address With Latitude and Longitude

By Prem Tiwari in Freebies, PHP Tutorial. Updated on


This is a quick tutorial. In this tutorial, If you are looking to find address with latitude and longitude, then please keep your close attention in this as I am going to share how to find address with latitude and longitude using google maps API and PHP.

You can find the live demo of this tutorial below and also can download the complete scripts from given below link.

How to Find Address With Latitude and Longitude

Live Demo           Download

How to find address with latitude and longitude

I have created a PHP function getaddress() which will get the complete and formatted address from latitude and longitude with the help of google map API. See the below google map “http://maps.googleapis.com/maps/api/geocode/json?latlng=30.7333,76.7794&sensor=false”. Create an index.php file and copy paste below code.

How to use getaddress function

Lets use the above PHP function getaddress() in your file. Copy below code to use in index.php file.

Over to You

Hope this tutorial help you but If you still need any help to use above code, then feel free to add your comments in below comment section. I will be happy to answer your queries. Enjoy this tutorial, do you like & share this article with your friends, and don’t forget to follow us on Facebook and Twitter to be the first to learn the next great thing from Frewebmentor.

Sharing is caring!


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.

You might also like:

Tags: , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.