How-tos for the location module

The following pages are how-tos that explain how to do certain things with the location module.

Feel free to add to this list if something is not here or insufficiently explained already or edit mistakes if you see them.

Activity Map

Activity map module provides you the way to display the Site activity on Google MAP with dynamic realtime updates.

Adding a custom location field

In a recent project, there was a need to have a separate Location field for the Suite value of an address. You need to add the following

Create a block view for node pages that displays nearby nodes based on location

This example shows how to create a block view for node pages that displays other nodes (not including the currently viewed node) that are

Creating KML feeds of location-enabled information

The KML module allows location-enabled information from your site to be viewed in Google Earth. It requires the Location module to associate

How To: Validate US Zip Codes with hook_locationapi

Drupal 5.x

How to create a "View map" link to Google Maps

This information was originally posted by luciddesign.

How to do mass geocoding/re-geocoding of node locations

(To do: Update this to include other location types.)

Howto: Create some basic location aware nodes.

Requirements:

Howto: Zip/postal code proximity search using views and location (Drupal 6)

Note: There is currently a bug in Location module that causes searches for large distances to not include results past a certain distance.

Query nodes on location cck data using EntityFieldQuery

If you want to select nodes based on location data stored in a location_cck field you can do so like this (replace NODETYPE & FIELDNAME with

Guide maintainers

rooby's picture