Geolocation in Drupal (Nodes & Users)
Geolocation in Drupal (Nodes & Users)
OpenLayers
+
Geocode
+
Geofield
OpenLayers (map display)
3. Can I process the data at a later date? (and how much data)
Google Loader
Pros: Cons:
Free Not always reliable
Returns more than just Lat Requires an external
& Long source
Unlimited Queries Mobile & International
2-4-1 Loading of JQuery results unreliable
HTML5 Geolocation
Pros: Cons:
Works great on mobile Browser support is
Uses GPS if possible unreliable*
Free Asks the user if you can
use their location
Only returns Lat & Long
Pay Databases & Services
Pros: Cons:
Can be internal or external Can cost a lot of money
Doesn't ask the user to Could have limited number
use their location of queries
Might have the wrong
location for mobile
International data varies
on levels below country
Which one to use?
or
($_SESSION['smart_ip']['location'])
Modules
OpenLayers
http://drupal.org/project/openlayers
Geocode
https://github.com/fillerwriter/geocode
Geofield
http://drupal.org/project/geofield
Smart IP
http://drupal.org/project/smart_ip
Device Geolocation
http://drupal.org/project/device_geolocation
Pay IP Services
MaxMind
http://www.maxmind.com
IP2Location
http://www.ip2location.com
IPInfoDB
http://ipinfodb.com/register.php
More Info
Geolocation in Drupal
(nodes & users)
By Andrew M. Riley
Mediacurrent Consultant
@andrewmriley