You are here

function location_driving_directions_link_ca in Location 5

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

Parameters: -> $locationA is an associative array that represents a full location where 'street' => the street portions of the location 'supplemental' => additional street portion of the location 'province' => the province, state, or territory 'country' => lower-cased two-letter ISO code (REQUIRED) -> $locationB is associative array that represents a full location in the same way that parameter $locationB does.

Returns: a link to driving directions

For now, assume site-admin wants American driving directions linked to Yahoo! Driving Directions. Maybe later, we can add some kind of country-specific settings page that allows the site-admin to decide which site to link to for driving directions.

File

supported/location.ca.inc, line 163

Code

function location_driving_directions_link_ca($locationA, $locationB) {
  return _location_driving_directions_link_ca_yahoo($locationA, $locationB);
}