You are here

function location_map_link_ch_search in Location 7.3

Same name and namespace in other branches
  1. 5.3 supported/location.ch.inc \location_map_link_ch_search()
  2. 6.3 supported/location.ch.inc \location_map_link_ch_search()
  3. 7.5 supported/location.ch.inc \location_map_link_ch_search()
  4. 7.4 supported/location.ch.inc \location_map_link_ch_search()

Map search.

File

supported/location.ch.inc, line 90
Switzerland.

Code

function location_map_link_ch_search($location = array()) {
  $query_param = '';
  if ($location['postal_code'] || $location['city'] || $location['street']) {
    $query_param = $location['postal_code'] . '-' . $location['city'] . '/' . $location['street'];
    return 'http://map.search.ch/' . $query_param;
  }
  else {
    return NULL;
  }
}