iPad Repair Near Me

results[0]->geometry->location->lat;
$lng = $locationGPS->results[0]->geometry->location->lng;

if (!isset($lat) || $lat== “” || is_null($lat) || !isset($lng) || $lng== “” || is_null($lng))
header( ‘Location: /ipad-repair-near-me’ ) ;

$json2=file_get_contents(“https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=”.$lat.”,”.$lng.”&radius=5000&type=electronics_store&keyword=ipadrepair&key=AIzaSyDPsxmwpUjZuw0g9gXx4AOiHs8y0DzBAXo”);

$businesses = json_decode($json2);

foreach ($businesses->results as $biz)
{
echo “

” . $biz->name . “

“;
//var_dump($biz->place_id);

$singleBusiness=file_get_contents(“https://maps.googleapis.com/maps/api/place/details/json?placeid=”.$biz->place_id.”&key=AIzaSyBp4zfCwY8526W-Vs0LQMpz_LJB3G0YDn0″);

$business = json_decode($singleBusiness);
echo “

“;
echo “Address: ” . $business->result->formatted_address . “
“;
echo “Phone: ” . $business->result->formatted_phone_number . “
“;
echo “Rating: ” . $biz->rating . “/5
“;
echo “Website: