You are here

function theme_location_longitude_dms in Location 6.3

Same name and namespace in other branches
  1. 5.3 location.module \theme_location_longitude_dms()
  2. 7.5 location.module \theme_location_longitude_dms()
  3. 7.3 location.module \theme_location_longitude_dms()
  4. 7.4 location.module \theme_location_longitude_dms()
3 theme calls to theme_location_longitude_dms()
location_views_handler_field_coordinates::render in handlers/location_views_handler_field_coordinates.inc
location_views_handler_field_longitude::render in handlers/location_views_handler_field_longitude.inc
template_preprocess_location in ./location.module
Theme preprocess function for a location.

File

./location.module, line 1523
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;
}