<?php $location = 'chandigarh'; $address = urlencode($location); $request_url = "http://maps.googleapis.com/maps/api/geocode/xml?address=".$address."&sensor=true"; $xml = simplexml_load_file($request_url) or die("url not loading"); $status = $xml->status; if ($status=="OK") { $ravilat = $xml->result->geometry->location->lat; $ravilon = $xml->result->geometry->location->lng; } ?> <script src="http://maps.googleapis.com/maps/api/js"></script> <script> function initialize() { var grayStyles = [ { featureType: "all", stylers: [ { hue: '#aaaaaa' }, { lightness: -15 }, { saturation: 99 } ...