You are here

function location_map_link_ca_yahoo in Location 7.3

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

Yahoo link.

File

supported/location.ca.inc, line 140
Canada.

Code

function location_map_link_ca_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_ca_yahoo_csz_get_field($location) . '&';
  }
  $get_query .= 'country=' . urlencode($location['country']);
  return 'http://ca.maps.yahoo.com/maps_result' . $get_query;
}