Provides a simple HTML5 geolocation service. User's location is returned in a callback via jQuery.
Geolocate module provides a more mobile friendly user geolocation service for Drupal. Most other geolocation solutions in Drupal seem to use a stored field, which doesn't make a lot of sense on the real time web. (Eg. why would you want to update the user's profile each time their location changes?)
To access geolocate lat/long in your own module, you just need to implement HOOK_geolocate_info. This will allow your module to access the session variables for latitude and longitude.
There is also a patch available for Geofield module to enable Geolocate to be used an an origin source for Views geolocative queries.
I would have written less code, but I didn't have enough time.
Project information
- Module categories: Site Structure
- 2 sites report using this module
- Created by forestmars on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 6 Jul 2016 at 20:22 UTC