You are here

function location_driving_directions_link_ca in Location 7.4

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

Parameters: -> $location_a 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) -> $location_b is associative array that represents a full location in the same way that parameter $location_b 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 201

Code

function location_driving_directions_link_ca($location_a, $location_b) {
  return _location_driving_directions_link_ca_yahoo($location_a, $location_b);
}