The Google Street View Image API lets you embed a static (non-interactive) Street View panorama or thumbnail into your web page, without the use of JavaScript.
Reque
Well, you easily can check the size of the returned file
I write my solution with PHP as an example. this function has two inputs : google streat view API URL and size of "Blank Image".
function street_view_check($url,$size_of_blank_image){
$str=file_get_contents($url);
if(strlen($str)==$size_of_blank_image){
return false;
}
return true;
}
$url1="http://maps.googleapis.com/maps/api/streetview?size=640x480&location=40.648215,-8.624296&fov=90&heading=$i&pitch=0&sensor=false";
$url2="http://maps.googleapis.com/maps/api/streetview?size=640x480&location=41.157207,-8.62378&fov=90&heading=$i&pitch=0&sensor=false";
echo street_view_check($url1,6778);
echo street_view_check($url2,6778);
?>