Posted by barry769 on September 9, 2010 at 10:45pm
I have a website that has a large amount of nodes with locations and ratings associated with them. When an anonymous user visits my site, i need for it to determine the city of the user and display to the user the highest rated node within a set distance of them.
Also, it would be an added bonus if I were able to display a map which was centered on the location of the anonymous user.
If the user were to be logged in, I would like to use the location specified at profile creation, but getting it to run off of the ip address determination first is most important.
Which modules/approach would be the best to address this?
Comments
Geo module hooks into Views
Geo module hooks into Views and has a proximity filter.
Does the Geo module also have
Does the Geo module also have anything that determines the city of an anonymous user? So far, that is the hardest part that I am having to figure out.
Geolocation based on IP address
Take a look at http://drupal.org/project/geoip - it's just an API, but may be able to give you some information to work with.
Also
* http://drupal.org/node/45806
* http://drupal.org/project/geouser
* http://drupal.org/project/hostip
* http://drupal.org/project/ip2nation
* http://drupal.org/project/ip2country
http://www.thomasturnbull.com
http://twitter.com/thomasturnbull
I'm a fan of the geoip module
What I'd really like to see and/or do is as follows:
(P.S. we accept funded inquiries/bounties!)
(P.P.S - fun facts to know and tell: "automagically" passes spell check!)