You are here

function location_map_link_au_yahoo in Location 7.4

Same name and namespace in other branches
  1. 5.3 supported/location.au.inc \location_map_link_au_yahoo()
  2. 6.3 supported/location.au.inc \location_map_link_au_yahoo()
  3. 7.5 supported/location.au.inc \location_map_link_au_yahoo()
  4. 7.3 supported/location.au.inc \location_map_link_au_yahoo()

File

supported/location.au.inc, line 133

Code

function location_map_link_au_yahoo($location = array()) {
  $get_query = '?';
  if (isset($location['street'])) {
    $get_query .= 'addr=' . urlencode($location['street']) . '&';
  }
  if ($location['province'] != '' || $location['city'] != '' || $location['postal_code'] != '') {
    $get_query .= 'csz=' . _location_au_yahoo_csz_get_field($location) . '&';
  }
  $get_query .= 'country=' . urlencode($location['country']);
  return 'http://maps.yahoo.com/maps_result' . $get_query;
}