I am parsing a google map api for getting latlong form address.I got the xml succesfully.How can i get the latlong from the xml response.
My response is
SimpleXMLElement Object ( [status] => OK [result] => SimpleXMLElement Object ( [type] => Array ( [0] => locality [1] => political )[formatted_address] => New Delhi, Delhi, India [address_component] => Array ( [0] => SimpleXMLElement Object ( [long_name] => New Delhi [short_name] => New Delhi [type] => Array ( [0] => locality [1] => political ) )[1] => SimpleXMLElement Object ( [long_name] => West Delhi [short_name] => West Delhi [type] => Array ( [0] => administrative_area_level_2 [1] => political )) [2] => SimpleXMLElement Object ( [long_name] => Delhi [short_name] => DL [type] => Array ( [0] => administrative_area_level_1 [1] => political ) ) [3] => SimpleXMLElement Object ( [long_name] => India [short_name] => IN [type] => Array ( [0] => country [1] => political ) ) )[geometry] => SimpleXMLElement Object ( [location] => SimpleXMLElement Object ( [lat] => 28.6353080 [lng] => 77.2249600 ) [location_type] => APPROXIMATE [viewport] => SimpleXMLElement Object ( [southwest] => SimpleXMLElement Object ( [lat] => 28.4010669 [lng] => 76.8396999 ) [northeast] => SimpleXMLElement Object ( [lat] => 28.8898159 [lng] => 77.3418146 ) ) [bounds] => SimpleXMLElement Object ( [southwest] => SimpleXMLElement Object ( [lat] => 28.4010669 [lng] => 76.8396999 ) [northeast] => SimpleXMLElement Object ( [lat] => 28.8898159 [lng] => 77.3418146 ) ) ) ) )
i want to get the geometry->location->lat value
Help me out from this issue
thanks in advance