You are here

function location_map_link_us_yahoo in Location 5

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

File

supported/location.us.inc, line 133

Code

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