geo_units

geo/geo.module, line 137

Versions
6
geo_units($unit = NULL)

API Function: List of available units.

Code

<?php
function geo_units($unit = NULL) {
  $units = array(
    'mi' => t('Miles'),  
    'km' => t('Kilometers'),
    'm'  => t('Meters'),
  );

  return $unit ? $units[$unit] : $units;
}
?>