Run View based on anonymous users location

Events happening in the community are now at Drupal community events on www.drupal.org.
barry769's picture

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

maedi's picture

Geo module hooks into Views and has a proximity filter.

Does the Geo module also have

barry769's picture

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.

I'm a fan of the geoip module

allie micka's picture

What I'd really like to see and/or do is as follows:

  • Write a handler for the Geocode module that can use GeoIP API to convert IP addresses to Geo Data. This would allow you to use it for storing field values, working with Views, or anything else that the Geocode API might be tasked to do.
  • One or more default argument handlers for Geo's Views support, which would allow you to use this derived information to automagically show results by proximity to users.

(P.S. we accept funded inquiries/bounties!)

(P.P.S - fun facts to know and tell: "automagically" passes spell check!)

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: