Ciao! I just found your module here and it suites perfectly to my needs. I just got one question: may the browser user location data (HTML5 feature) be used as the base point from which compute the proximity filter? Given the user agrees with sharing its location with my website, I would like to filter nodes according to proximity to the user's (even anonymous one) position. Would it be possible?

CommentFileSizeAuthor
#3 geolocation_proximity.zip33.66 KBmauriziopinotti

Comments

mauriziopinotti’s picture

ciao Augusto,

should be supported natively, have a look here:

http://www.321sposi.it/bozza/ricerca-aziende-servizi-matrimoni?srv=1

cesareaugusto’s picture

Thanks for your reply twist3r! How could I implement this? Which variables (if there are any) should I put into my view?

mauriziopinotti’s picture

StatusFileSize
new33.66 KB

not sure if I ever uploaded the latest version, please see attached file, that's the module used by the above site.

cesareaugusto’s picture

Thanks very much twist3r! Shall test it out and give it a try!

derjochenmeyer’s picture

Version: 7.x-1.1 » 7.x-2.x-dev
Category: support » task
gthing’s picture

Hmm... Is this ever going to happen? I need this for my use case.

gthing’s picture

$25 bounty for this feature.

gardy’s picture

Issue summary: View changes

I found a simple solution for this. Not the best, but works well. If there is no filter value it gets the users location with IPGV&M.

Just add the following lines to geolocation_proximity.views.inc at line 73.

  if (isset($filter_lat)){
    $user_loc=ip_geoloc_get_visitor_location();
    if (isset($user_loc['latitude'])){
	$filter_lat=$user_loc['latitude'];
  	$filter_lng=$user_loc['longitude'];
    }
  }
amarwin’s picture

Hai am using this module. i need views results depends on my browser lat and long values. for location module i use return ip_geoloc_get_visitor_location(); for browser location filter. but i dont know for this. i need help for this.

amarwin’s picture

hi gardy,

your code does not work for me. can you please clearly explain. which version i need to put this code.

alfthecat’s picture

Same here, not working... I think having this module work with proximity views in conjunction with IP_geoloc is highly desirable.

edutrul’s picture

Subsrcibe! +1

pixelsweatshop’s picture

@edutrul, please use the follow button in the top right next time you want to subscribe.