Last updated July 7, 2013. Created by hutch on July 6, 2013.
Log in to edit this page.

This page describes how to use the Getlocations module.

Getlocations can display locative information provided by one of the following modules:
Getlocations Fields, a submodule of Getlocations.
The Geofield module
The Geolocation module
The Location module, by enabling location_cck

Getlocations Fields (7.x-1.x) can attach a field of locative information to a node, a user, a term or a comment.
Getlocations Fields (7.x-2.x) can attach a field of locative information to any entity type, this is still experimental.

Once Getlocations Fields is installed a field with a map and an address can be added to an entity, eg a node, a user, a term or a comment.

To access a Getlocations enabled node, use the path "/getlocations/node/xxx" where xxx is the node identifier.
If Getlocations Fields has been added to a user's profile, use "/getlocations/user/xxx". For all users use "/getlocations/users"
For Comments use "/getlocations/comment/xxx" and for Taxonomy terms use "/getlocations/term/xxx".

They can also be displayed per content-type, so if your content-type has a machine name 'venue' you can show them all with
"/getlocations/type/venue".

With the above path you can add another two parameters which must be a location key/value pair, so "/getlocations/type/venue/city/london" will give you all the venue locations in London.
The keys might typically be

lid or glid
name
street
additional
city
province
postal_code
country
latitude
longitude
province_name
country_name

If you need more complex things use Views.

You can display a list of location ids with something like
"getlocations/lids/1,2,3,4"
and a list of nodes with
"getlocations/nids/1,2,3,4"

Looking for support? Visit the Drupal.org forums, or join #drupal-support in IRC.