Go to the source code of this file.
Namespaces | |
| namespace | Elgg::Core |
Activate a plugin or plugins. | |
Enumerations | |
| enum | MILE |
| enum | KILOMETER |
Functions | |
| elgg_geocode_location ($location) | |
| Encode a location into a latitude and longitude, caching the result. | |
| elgg_get_entities_from_location (array $options=array()) | |
| Return entities within a given geographic area. | |
| elgg_list_entities_from_location (array $options=array()) | |
| Returns a viewable list of entities from location. | |
| enum KILOMETER |
Definition at line 157 of file location.php.
| enum MILE |
Definition at line 156 of file location.php.
| elgg_geocode_location | ( | $ | location | ) |
Encode a location into a latitude and longitude, caching the result.
Works by triggering the 'geocode' 'location' plugin hook, and requires a geocoding plugin to be installed.
| string | $location The location, e.g. "London", or "24 Foobar Street, Gotham City" |
Definition at line 18 of file location.php.
| elgg_get_entities_from_location | ( | array $ | options = array() |
) |
Return entities within a given geographic area.
Also accepts all options available to elgg_get_entities().
| array | $options Array in format: |
latitude => FLOAT Latitude of the location
longitude => FLOAT Longitude of the location
distance => FLOAT/ARR ( latitude => float, longitude => float, ) The distance in degrees that determines the search box. A single float will result in a square in degrees.
Definition at line 80 of file location.php.
| elgg_list_entities_from_location | ( | array $ | options = array() |
) |
Returns a viewable list of entities from location.
| array | $options Options array |
Definition at line 150 of file location.php.
1.6.3