I'm using Google streetview Image API in order to get the street view of a particular address. When the address is not found, I would like to show my own placeholder image instead of the image returned by Google. Does someone know how to do that? As I feel, the only way I can distinguish between a valid image and invalid image is, checking the image size (If the image size is less than like 4KB, it's most probably the Google default image for street view not found). I'm not really proud of myself for that invention so that's why I'm searching on a more reliable and nice way.
I'm happy to use any other API as well as long as it does the job.
Thanks.