How to Find Address With Latitude and Longitude

| Last Updated: | In: Freebies, PHP Tutorial


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.

Tags: , , , , , , ,


About: Prem Tiwari

Prem Tiwari is the founder of freewebmentor.com and is a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby.


You may also like:

Follow us!

Get Free Access of 400+ Scripts

Don't worry you'll not be spammed!

Featured eBook

WordPress Security Guide

Free Guide: Learn how to implement security guideline in your WordPress site...

DOWNLOAD

Pincode Finder

pincode-finder tool

Online Pincode Finder

Best tool to locate post Office address and pincodes of all india...

SEARCH NOW