Proximity search and distance calculation for address coordinates #17227
Unanswered
MoritzLost
asked this question in
Ideas
Replies: 1 comment
-
I've opened a PR as a proof-of-concept: #17429 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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