would there be interest in incorporating this functionality into location?

need it fairly urgently for a project and am happy to pay for it

need to sort geotagged nodes by proximity from user browser

if not, any alternatives?

thanks,
Ken

Comments

rooby’s picture

Location 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.

kenwen’s picture

i was thinking about using html5 geolocation features?

not sure about this at all so will give it more coffee and thinking time :)

jamesbenison’s picture

I 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

kenwen’s picture

cool stuff, looks like it could be the solution!

Cheers,
Ken

rooby’s picture

That smart ip module looks pretty cool, I'll have to check it out.

jamesbenison’s picture

Actually 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.

rickh’s picture

Hey 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.

rickh’s picture

I got this working with http://drupal.org/project/ip_geoloc. Hope it helps someone.

legolasbo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing old D6 issues as D6 is end of life