Proximity search and distance calculation for address coordinates #17227
Unanswered
MoritzLost
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Addresses have an optional
latLong
native property that can be added to the field layout and store coordinates. For addresses with coordinates, it would be great to use those for proximity searches and distance calculations.Proximity search
Narrowing an address query based on the coordinates, for example:
Distance calculation
A helper method, twig function or method for addresses to calculate the distance between the addresses coordinates and a given point. Optionally, a query with a proximity parameter could also set the distance between that point and the coordinates of the address.
Example
The Google Maps plugin supports proximity search and distance calculations for the built-in address field.
Beta Was this translation helpful? Give feedback.
All reactions