If we know longitude and latitude of the geolocation points, how we can calculate the distance between them?
For example, image this input document:
[
{
"location_1": {
"type": "Point",
"coordinates": [
10,
20
]
},
"location_2": {
"type": "Point",
"coordinates": [
10,
30
]
}
}
]
How can we calculate the distance between location_1
and location_2
?