I am doing project and I need to fill my database with lat lng of address. I decided to use PHP and geocoding and I have big problem. PHP script returns ZERO RESULT, but when I try with web browser I have correct result.
$fulladdress = $street.$city;
$request= "http://maps.googleapis.com/maps/api/geocode/xml?address=".rawurlencode($fulladdress)."&sensor=true";
$xml = simplexml_load_file($request) or die("url not loading");
When i printed $fulladdress, $request and xml status I have this:
?apino Kartuskie http://maps.googleapis.com/maps/api/geocode/xml?address=%3Fapino%20Kartuskie&sensor=true STATUS: ZERO_RESULTS