function location_map_link_us_providers in Location 6.3
Same name and namespace in other branches
- 5.3 supported/location.us.inc \location_map_link_us_providers()
- 5 supported/location.us.inc \location_map_link_us_providers()
- 7.5 supported/location.us.inc \location_map_link_us_providers()
- 7.3 supported/location.us.inc \location_map_link_us_providers()
- 7.4 supported/location.us.inc \location_map_link_us_providers()
Return value
An array where -> the key is the word that helps identify the name of function that builds the link. For example, a key of 'yahoo' means the name of the the function that builds a link to a map on Yahoo! Maps would be 'location_map_link_us_yahoo' -> the value is itself an array with 3 key/value pairs: 'name' => points to the name of the mapping service. For 'yahoo', this would be 'Yahoo! Maps' 'url' => the url of the main page of the mapping service. For 'yahoo', this would be 'http://maps.yahoo.com' 'tos' => the url of the page that explains the map providers Terms of Service, or Terms of Use. For 'yahoo', this would be 'http://help.yahoo.com/help/us/maps/maps-24.html'
File
- supported/
location.us.inc, line 205
Code
function location_map_link_us_providers() {
return array(
'google' => array(
'name' => 'Google Maps',
'url' => 'http://maps.google.com',
'tos' => 'http://www.google.com/help/terms_local.html',
),
'yahoo' => array(
'name' => 'Yahoo! Maps',
'url' => 'http://maps.yahoo.com',
'tos' => 'http://help.yahoo.com/help/us/maps/maps-24.html',
),
'mapquest' => array(
'name' => 'MapQuest',
'url' => 'http://www.mapquest.com',
'tos' => 'http://www.mapquest.com/features/main.adp?page=legal',
),
);
}