function _location_map_link_de_tinfo in Location 5
1 call to _location_map_link_de_tinfo()
- location_map_link_de in supported/
location.de.inc - Parameters: -> $locationA is an associative array that represents a full location where 'street' => the street portions of the location 'supplemental' => additional street portion of the location 'province'…
File
- supported/
location.de.inc, line 27
Code
function _location_map_link_de_tinfo($location = array()) {
$get_query = '?';
$get_query .= 'map_input.country=2';
if (isset($location['street'])) {
$get_query .= '&' . 'map_input.street=' . urlencode($location['street']);
}
if ($location['postal_code'] != '') {
$get_query .= '&' . 'map_input.zip=' . urlencode($location['postal_code']);
}
if ($location['city'] != '') {
$get_query .= '&' . 'map_input.city_manual=' . urlencode($location['city']);
}
// if ($location['number'] != '') {
// $get_query .= '&' . 'map_input.number='. urlencode($location['number']);
// }
return 'http://www.t-info.de/map/jumppage/map.jsp' . $get_query;
}