Hi,
I am working on Grails 1.3.2 with MySql. I need to store the latitude and longitude of certain locations in the database and then on the basis of the user's current location, I need to return the items that are within a particular radius of that location. So, we basically have the following requirements:
- Search for places with-in a given radius of the user's current co-ordinates
- Provide a full text search. We are currently using searchable for this
- Do a combination of full text search with-in a given radius of the user's current co-ordinates.
I have been looking into the various options that we have here and wanted to know what are your views/ suggestions to implement this. The various options that we have here are:
Lucene Spatial Search (http://wiki.apache.org/lucene-java/SpatialSearch) and look into how to use it with searchable
Grails Solr Plugin (http://www.grails.org/plugin/solr). But this does not return domain objects.
Grails Stitches Plugin (http://www.grails.org/plugin/stitches). There is not a lot of documentation except on the author's site (http://www.philliprhodes.com/content/stitches-30-seconds).
MySql spatial extension along with a full text index on all the fields of the domain class. If we go this route, then we will not be using searchable at all.
- Postgres/PostGIS integration with hibernate-spatial (http://blog.mollusca.ch/2008/10/4/grails-spatial-data-postgis)
I believe that this is a very basic requirement in any application that integrates with maps.
So, I am really interested in knowing the most appropriate way to implement this functionality.
Thanks
~~Himanshu Seth~~