Hello, I am implementing a geolocation search.
Is there a way for AppSearch to calculate the distance between locations?
I know I can do this search. but is it possible that the result of the consultation shows the distance between the places?
Search Example:
"filters": {
"location": {
"center": "37.386483, -122.083842",
"distance": 300,
"unit": "km"
}
}
Answer Example.
[
{
"restaurant": "Restaurant 1",
"distance": "3km"
},
{
"restaurant": "Restaurant 2",
"distance": "10km"
},
{
"restaurant": "Restaurant 3",
"distance": "14km"
}
]