The Location module allows real-world geographic locations to be associated with Drupal nodes, including people, places, and other content. The Location module allows admins to collect addresses, geocode them (translate addresses to lattitude/longitude), and associate locations with Drupal nodes and users. Location data is automatically used to generate GeoRSS within your existing RSS feeds.
At present, it is the only module that provides the views integration necessary for implementing location-based searches and is designed for the purpose of finding points on a map within a vicinity of a user-supplied location. If you are interested in the presentation and manipulation of geographic data beyond points (e.g., lines, polygons, etc) I would recommend using the geofield and open layers modules.
Location now includes the following modules:
- Location: provides the Location API; handles address storage and geocoding. Allows users to attach locations to nodes.
- User Locations: allows admins to associate locations with users.
- Location Phone and Location Fax: add phone and fax fields to Location's address fieldset.
- Location Search: Integrate locations and proximity searching into the core Drupal search functionality
- Location CCK: provide a Location behavior as a CCK field.
- Location Generate: Programmatically generate locations for testing (integrates with the Devel package).
- Location Add Another: Allows you to quickly add new locations to a node.
In addition to the underlying Drupal modules, the Location package contains a machine-readable table of postal codes for several countries.
For more information see the location handbook.
Drupal 7
The dev version (7.x-3.x-dev) is now available and ready for use on production sites.
Porting is complete, but there are still a few minor issues to be resolved.
If you find any bugs please post bug reports in the issue queue (if there isn't already one for the problem).
Installing fresh on D7 has been tested. Upgrading from D6 still needs to be tested. Feel free to test and and post issues for the upgrade path.
Important:
Location 7.x-3.x is a direct port of the drupal 6 version (6.x-3.x) and so it still uses node locations and user locations etc. as before instead of properly using the field API.
This means that the location field the location CCK module provides will only work for nodes, not users, taxonomy or anything else. The direct port was taken as a quick route to provide the D6 functionality in D7 in order to make it easier for people to upgrade their sites.
Location 7.x-4.x is an abandoned branch that was originally intended to implement locations as entities.
Location 7.x-5.x is currently under development. It's main goal is to provide a proper, cleaner field implementation that allows for adding location fields to any entity (not just nodes and users as is presently the case with the 7.x-3.x branch) as well as to provide some sophisticated and easy-to-use views integration. For now, do not use it for any sites. I would not even recommend testing it at this point.
Known issues
Currently, with 6.x-3.x, you cannot use node locations and cck locations on the same node type. For more information see INSTALL.txt or the drupal.org handbook for the module.
If using a 7.x-3.x version please read the important note in the D7 section above.
Downloads
Recommended releases
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Content Construction Kit (CCK), Event, Fields, Location, Mobile, Third-party Integration, Views
- Reported installs: 42543 sites currently report using this module. View usage statistics.
- Downloads: 202,948
- Last modified: April 16, 2012