What is the current recommended module / collection of modules for location based search?

I have Geofield working, so location entry and views based mapping is working fine.
I'm looking into OpenLayers to extend the mapping options a little.

But in terms of search (ie: find doodads nearby a postcode / an address / my current location) the documentation isn't very clear.
There seem to be a couple of modules that either haven't been updated for a long time, or only have dev versions, or have large warnings and lots of issues.

So I'm having my usual problem with drupal of not knowing which module to pick, and not knowing if the 2 year old documentation is still correct.

What's the current best option for location search?

Comments

pixelsweatshop’s picture

Geofield 2.x has proximity searching baked in and is my current go to module for this. as you mentioned you are already using it, just update to the 2.x version and just add a proximity exposed filter to your views.

MiniEggs’s picture

Really?
Ok, many thanks, I will investigate!

MiniEggs’s picture

I see Geofield 2.x is still in alpha though. As you recommended it I guess you consider it stable enough to run?

The documentation doesn't give any info on upgrading from v1 to v2. Any recommendations or advice on that?

pixelsweatshop’s picture

It's in a pretty good state. Still some rough ui stuff. Update is clean though. Just run update.php and flush cache as per usual. If you are going to be using openlayers for the mapping portion then you have to run the dev version of either the 1x or 2x of geofield. If you are using leaflet then you are ok without moving to the dev versions.

MiniEggs’s picture

Thanks very much for your help so far. Hope you don't mind me asking a couple of other things.

I've gotten 2x working with geofield map and it works ok for getting nearby results when I enter an address. (as you said, the exposed UI is a bit rough, but it works fine).

Question 1: The geofield page seems to imply HTML5 Geolocation is included, but I can't find any sign of it (and there is basically no documentation). Any ideas how to find that?

Question 2 (not exactly related):
Is there any way to mix geofield results and text results in the same view? Depending on the View Display Format I chose, I can get the results as a list of text items, or as a map. But can I get both on the same page? It seems to be an either/or situation.
I'm hoping there's an easy option that I've missed.

Thanks again!

pixelsweatshop’s picture

Question 1: The geofield page seems to imply HTML5 Geolocation is included, but I can't find any sign of it (and there is basically no documentation). Any ideas how to find that?

Geofield currently only supports html5 geo support as a field not in its proximity capabilities. I have personally been waiting for this feature to be added.

Question 2 (not exactly related): Is there any way to mix geofield results and text results in the same view? Depending on the View Display Format I chose, I can get the results as a list of text items, or as a map. But can I get both on the same page? It seems to be an either/or situation.

Just add a views attachment with an unformatted list display that inherits the exposed filters of the map (or vice versa). You can see an example in one of my dev sites http://www.atira.pixelsweatshop2.com/vacancies

MiniEggs’s picture

Awesome.

I've been using views for ages and i'd never discovered views attachments! (oh wonderful drupal UI and learning curve!) Those look like they'll be really handy! Thanks so much.

I'll join you in waiting for HTML5 geo for proximity, but it wasn't essential for this project anyway. I'll have to see if i can get it working as a field for input.

Thanks again, you've been very helpful!