Closed (outdated)
Project:
Location
Version:
6.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Mar 2011 at 19:29 UTC
Updated:
19 Jul 2016 at 12:12 UTC
Jump to comment: Most recent
Comments
Comment #1
rooby commentedLocation already supports sorting nodes by their location's proximity to a user in views. However it does this for a the location the user has using the location module locations, not the user's location based on the location of their IP address.
You could use the ip2cc module to get the users country from their IP address but it doesn't do any greater accuracy than country code so won't be very accurate.
I have been thinking of making a module that provides some integration between the location module and the ip2cc module and something like this could go into such a module. But it won't be until time permits and in the case of sorting by proximity you won't get very good accuracy.
As for this module, I can't see any IP address location functionality being added, it would be best in an external module.
Comment #2
kenwen commentedi was thinking about using html5 geolocation features?
not sure about this at all so will give it more coffee and thinking time :)
Comment #3
jamesbenison commentedI am currently in the midst of setting up this functionality on a site using smart ip
http://drupal.org/project/smart_ip
I'll let you know how it all goes
Comment #4
kenwen commentedcool stuff, looks like it could be the solution!
Cheers,
Ken
Comment #5
rooby commentedThat smart ip module looks pretty cool, I'll have to check it out.
Comment #6
jamesbenison commentedActually this appears to be a truly freaking fantastic combination. I am using Drupal 7 with a patched cck location module.
As an aside I have found that the device geolocation module (part of smart ip) causes a problem with the jquery dialog api.
Comment #7
rickh commentedHey James, did you ever get this going? We're looking for something similar. Essentially we want to create a proximity filter based on the users IP Geolocation. Any help would be appreciated.
Comment #8
rickh commentedI got this working with http://drupal.org/project/ip_geoloc. Hope it helps someone.
Comment #9
legolasboClosing old D6 issues as D6 is end of life