Possible Duplicate:
Extract JSONP Resultset in PHP
$url_address = "http://geocoder.ca/?latt=" . $lat . "&longt=" . $lon . "&reverse=1&allna=1&geoit=xml&corner=1&jsonp=1&callback=getinfo";
$addressSet = json_decode(file_get_contents($url_address), true);
When I try to to access $addressSet[0]
is does not have anything
So the http://geocoder.ca/?latt=42.04&longt=-87.79&reverse=1&allna=1&geoit=xml&corner=1&jsonp=1&callback=getinfo returns data, how can I parse it?