Revision: 14461
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 4, 2009 16:08 by iloveitaly
Initial Code
function googleMapLink($to, $from) { $destinationAddy = '&daddr='.urlencode($to->getAddress().' '.$to->getCity().' '.$to->getState()); if($from) { $startAddy = '&saddr='.urlencode($from->getAddress().' '.$from->getCity().' '.$from->getState()); } else { $startAddy = '&saddr='; } return htmlentities("http://maps.google.com/maps?f=q&hl=en&{$startAddy}{$destinationAddy}"); }
Initial URL
Initial Description
Initial Title
PHP Create Google Map Directions Link
Initial Tags
php, link, html, google
Initial Language
PHP