Store locator with proximity

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

Hi,

I need to make store locator with proximity radius search.

From available solutions have tried:
Google store locator (https://www.drupal.org/node/2384905)
Openlayers + geojson + geofield proximity exposed (https://www.drupal.org/node/2384661)

For now, Google store locator don't uses proximity filter or bbox argument, so this option is out.

Other option with openlayers, problem is that openlayers + geojson isn't working at all, and geofield exposed filter is returning search results, but location of search is not centered after search is conducted.

If anybody have experience in store locator with radius (proximity) search, any suggestions are welcome. Do exist some other possible solutions, or from current standing, i have spend some time one existing solutions, but from this point i see that maybe solution should be custom.

Comments

You should be able to do this

gcb's picture

You should be able to do this with leaflet_views and geofield. A list of required modules and brief outline from a talk I gave at BADcamp should get you started:

https://github.com/unclegcb/maps_made_easy/blob/master/outline.md

Hi,have tried also, but

valic's picture

Hi,

have tried also, but haven't mentioned above
yes, search based on proximity with leaflet it's working great.

Problem is that i need to use with geojson while need map to show exact number of stores (etc. only 5) based on geolocation or search.

And when you move trough map, always to show 5 (and load new how you move trough map, but only 5 at once), for that is needed geojson, which again cannot made to work with Leaflet (even geojson it's working quite well with google store locator)

Location and Mapping

Group organizers

Group categories

Wiki type

Group notifications

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