You are here

function _location_map_link_de_suchen in Location 5.3

Same name and namespace in other branches
  1. 6.3 supported/location.de.inc \_location_map_link_de_suchen()
  2. 7.5 supported/location.de.inc \_location_map_link_de_suchen()
  3. 7.3 supported/location.de.inc \_location_map_link_de_suchen()
  4. 7.4 supported/location.de.inc \_location_map_link_de_suchen()
1 call to _location_map_link_de_suchen()
location_map_link_de in supported/location.de.inc
Parameters: -> $location_a is an associative array that represents a full location where 'street' => the street portions of the location 'supplemental' => additional street portion of the…

File

supported/location.de.inc, line 47

Code

function _location_map_link_de_suchen($location = array()) {
  $get_query = '?';
  $get_query .= 'where=';
  $query_parts = array();
  if (isset($location['street'])) {
    $query_parts[] = $location['street'];
  }
  if ($location['postal_code'] != '') {
    $query_parts[] = $location['postal_code'];
  }
  if ($location['city'] != '') {
    $query_parts[] = $location['city'];
  }

  //  if ($location['number'] != '') {
  //    $query_parts[] = $location['number'];
  //  }
  $get_query .= urlencode(implode(', ', $query_parts));
  return 'http://www.suchen.de/lokalmap' . $get_query;
}