Google Static Map in Gmail

46 views
Skip to first unread message

Julien HILLARD

unread,
Oct 13, 2014, 3:35:59 AM10/13/14
to google-maps...@googlegroups.com
Hi,

I need some help, I want to include a static map in a mail. 

That's work fine but in Gmail my static map is not visible. When I check the link google says :

The requested URL /proxy/Z3gtRcfZmsV_-TktNyswVN9f5P46iysjsU8YHliNnqyhjasKUVteYuDsFmO1jy-zdcf1rtfUjyGYXf8ddCsJmELSZu_c1YDW-ZY3tRm7PNdhM2he5wuPFaIFwgWStFL_f39-sIB66cUkc8_wPwoLljqXz9X2xhv_EJHX68arpLltrASzd0DUCr0Wa-FcR4nV21RD05O33Kak8KiqORG5ZiO9Wta9f0ZmDxdchySJD2QMlb4bqtMIy_kIPpmJaFvFOEE9MLmxJpZOQ1YU9fV29m2m_QLAZLugiyo=s0-d-e1-ft was not found on this server. That’s all we know.

So please can you help me ?



Code : <?php
    $city = $appointment->getPractice()->getCity()->getName();
$city = str_replace(" ", "+", $city);
$adress = $appointment->getDoctor()->getPractice()->getAddress();
$adress = str_replace(" ", "+", $adress);
$country = $appointment->getPractice()->getCity()->getCountry()->getName();
$long = $appointment->getPractice()->getLongitude();
$lat = $appointment->getPractice()->getLatitude();
?>
<div style="float: right"><img src="https://maps.googleapis.com/maps/api/staticmap?center=<?= $adress ?>,<?= $city ?>,<?= $country ?>&zoom=15&size=300x300&maptype=roadmap
&markers=size:mid|color:red|<?= $lat ?>,<?= $long ?>&maptype=mobile"/> </div>


Reply all
Reply to author
Forward
0 new messages