You are here

function location_google_geocode_accuracy_codes in Location 7.3

Same name and namespace in other branches
  1. 5.3 location.module \location_google_geocode_accuracy_codes()
  2. 6.3 location.module \location_google_geocode_accuracy_codes()
  3. 7.5 location.module \location_google_geocode_accuracy_codes()
  4. 7.4 location.module \location_google_geocode_accuracy_codes()

Returns a list of accuracy codes as defined by the Google Maps API.

See also

http://code.google.com/apis/maps/documentation/reference.html#GGeoAddres...

2 calls to location_google_geocode_accuracy_codes()
google_geocode_settings in geocoding/google.inc
General settings for this geocoder.
location_geocoding_options_form in ./location.admin.inc
Options form.

File

./location.module, line 2247
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 location_google_geocode_accuracy_codes() {
  return array(
    0 => t('Unknown location'),
    1 => t('Country level accuracy'),
    2 => t('Region (state, province, prefecture, etc.) level accuracy'),
    3 => t('Sub-region (county, municipality, etc.) level accuracy'),
    4 => t('Town (city, village) level accuracy'),
    5 => t('Post code (zip code) level accuracy'),
    6 => t('Street level accuracy'),
    7 => t('Intersection level accuracy'),
    8 => t('Address level accuracy'),
    9 => t('Premise (building name, property name, shopping center, etc.) level accuracy'),
  );
}