You are here

README.txt in Search API Location 7.2

Search API location views
-------------------------

This module adds location search capabilities to Search API views. It adds both
filters and contextual filters for filtering by proximity to a specified
location.

* Filters

When you're creating a filter on a field that is indexed as "Latitude/longitude"
(and the server's service class supports location searches) the filter will
change to allow filtering based on proximity to a specified location. The
location can be input as text and will be converted to a physical location using
the Geocoder module. As the operator, a radius can be selected, which can also
be exposed to the user like for normal filters. In addition, you have the option
to make the radius a select box instead of a text field.

* Contextual filters

There are three contextual filters:
- LonLat: Here you can fix the radius for the search distance filter. The
  central point argument is then expected as: "LAT,LON", where LAT and LON are
  the decimal latitude and longitude, respectively, of the location. If you have
  the geoPHP module installed, additional accepted formats are: WKT, geoJSON or
  any other format geoPHP accepts.
- LonLat Point: This filter accepts the point for the centre of the search
  distance filter. The same formats as above can be used. If you use this filter
  you must also use the radius filter.
- LonLat Radius: This filter accepts a radius (in km) for the search distance
  filter. This must be used with the point filter.

File

search_api_location_views/README.txt
View source
  1. Search API location views
  2. -------------------------
  3. This module adds location search capabilities to Search API views. It adds both
  4. filters and contextual filters for filtering by proximity to a specified
  5. location.
  6. * Filters
  7. When you're creating a filter on a field that is indexed as "Latitude/longitude"
  8. (and the server's service class supports location searches) the filter will
  9. change to allow filtering based on proximity to a specified location. The
  10. location can be input as text and will be converted to a physical location using
  11. the Geocoder module. As the operator, a radius can be selected, which can also
  12. be exposed to the user like for normal filters. In addition, you have the option
  13. to make the radius a select box instead of a text field.
  14. * Contextual filters
  15. There are three contextual filters:
  16. - LonLat: Here you can fix the radius for the search distance filter. The
  17. central point argument is then expected as: "LAT,LON", where LAT and LON are
  18. the decimal latitude and longitude, respectively, of the location. If you have
  19. the geoPHP module installed, additional accepted formats are: WKT, geoJSON or
  20. any other format geoPHP accepts.
  21. - LonLat Point: This filter accepts the point for the centre of the search
  22. distance filter. The same formats as above can be used. If you use this filter
  23. you must also use the radius filter.
  24. - LonLat Radius: This filter accepts a radius (in km) for the search distance
  25. filter. This must be used with the point filter.