GeoFilter
|
Type |
Class |
|
Extends |
|
|
Import path |
|
A filter that returns search results depending on geographical data, such as the radius of a circular geographical area.
For example, return search results only for those products that are available for purchase within "16km" of where the search request was made.
Constructor
Parameters
|
Name |
Type |
Description |
|---|---|---|
|
|
|
The entity's attribute to match against the geographical data. Example: |
|
|
Geographical data used for filtering search results. |
Properties
|
Name |
Type |
Description |
|---|---|---|
|
|
|
Required. The entity's attribute to match against the geographical data. |
Methods
_validateLocation
Validates latitude and longitude.
Signature
Parameters
|
Name |
Type |
Description |
|---|---|---|
|
|
The geographical coordinates of the location that the site visitor wants to see search results for. Overrides the site visitor's current location ( |
Return value
Returns void.
Errors
toDTO
Maps the GeoFilter instance to its DTO (data transfer object) format.
Signature
Return value
Returns the GeoFilter instance in a standardized DTO format.