Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How to use geofencing in php?

user-image
Question added by Jargam Abbas Sayyed Mohammad Azam , Senior Software Developer , Trimax Infrastructure Ltd.
Date Posted: 2016/01/14
Julfkar  Moh Umar
by Julfkar Moh Umar , Sr. Software Engineer , Aakash Edutech Private Limited

This is the grogram to find latitude and longitude .

$filter_address =  "{$address_1'},{$'city'},{$'state'},{$'country'},{$'postcode'}";

$prepAddress = str_replace(' ', '+', $filter_address);

$output = json_decode(file_get_contents("http://maps.google.com/maps/api/geocode/json?address={$prepAddress}&sensor=false"));

$v_lat = $output->results[0]->geometry->location->lat;

$v_long = $output->results[0]->geometry->location->lng;

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.