function theme_location_longitude_dms in Location 5.3
Same name and namespace in other branches
- 6.3 location.module \theme_location_longitude_dms()
- 7.5 location.module \theme_location_longitude_dms()
- 7.3 location.module \theme_location_longitude_dms()
- 7.4 location.module \theme_location_longitude_dms()
1 theme call to theme_location_longitude_dms()
- template_preprocess_location in ./
location.module - Theme preprocess function for a location.
File
- ./
location.module, line 1369 - Location module main routines. An implementation of a universal API for location manipulation. Provides functions for postal_code proximity searching, deep-linking into online mapping services. Currently, some options are configured through an…
Code
function theme_location_longitude_dms($longitude) {
$output = '';
list($degrees, $minutes, $seconds, $negative) = location_dd_to_dms($longitude);
$output .= "{$degrees}° {$minutes}' {$seconds}\" ";
if (!$negative) {
$output .= 'E';
}
else {
$output .= 'W';
}
return $output;
}