static map görüntüsü yardım google

0 Cevap php
http://maps.google.com/maps/api/staticmap?center=Berkeley,CA&zoom=14&size=280x280&sensor=false&markers=icon:http://chart.apis.google.com/chart%3Fchst%3Dd_map_spin%26chld%3D1%257C0%257Cfff%257C11%257C_%257CHere|Berkeley,CA

Yukarıda görüntüyü açmak eğer iyi çalışır.

http://maps.google.com/maps/api/staticmap?center=cabindeck,Startrack&zoom=14&size=280x280&sensor=false&markers=icon:http://chart.apis.google.com/chart%3Fchst%3Dd_map_spin%26chld%3D1%257C0%257Cfff%257C11%257C_%257CHere|cabindeck,Startrack

the question is how di i give an error echo if it fails ? any ideas ? btw im useing php

gibi

    function get( $address ){
    echo '<img src="http://maps.google.com/maps/api/staticmap?center=' . $address . '
    &zoom=14&size=280x280&sensor=false&markers=icon:http://chart.apis.google.com/chart%3Fchst%3Dd_map_spin%26chld%3D1%257C0%257Cfff%257C11%257C_%257CHere|' . $address . '" alt="" />';
}

0 Cevap