You are here

Location: An API for working with locations. in Location 7.4

Same name and namespace in other branches
  1. 5.3 location.inc \Location
  2. 6.3 location.inc \Location
  3. 7.5 location.inc \Location
  4. 7.3 location.inc \Location

Public API for the Location module.

File

./location.inc, line 3

Functions

Namesort descending Location Description
location_distance_between ./location.inc Given two points in lat/lon form, returns the distance between them.
location_driving_directions_link ./location.inc Takes two locations and tries to return a deep-link to driving directions.
location_get_postalcode_data ./location.inc Try to extract the the Latitude and Longitude data from the postal code.
location_latlon_exact ./location.inc Currently, this is not a priority until there is an implementable use for exact longitude, latitude coordinates for an location. The idea is that this call will eventually retrieve information through a web-service. Whereas location_latlon_rough()…
location_latlon_rough ./location.inc Takes an location and returns a "rough" latitude/longitude pair based on the postal code data available for the given country.
location_map_link ./location.inc Get a deep-link to a mapping service such as Yahoo! Maps or MapPoint given an location. The call is delegated based on the 'country' value in the $location parameter.
_location_supported_countries ./location.inc Returns an associative array of countries currently supported by the location system where -> the keys represent the two-letter ISO code and -> the values represent the English name of the country. The array is sorted the index (i.e., by the…