Hi Team,
Got a requirement where, we have a path /etc/storelocator in aem. Under this path, we have several child nodes and each node contains 2 properties latitude and longitude. Please see the scrrenshot below:
Now, we need to find all those nodes which are nearby to a location within a provided radius.
For example, let say radius = 10 km and location is {45.4286698 , -122.5752410}. we need to find all the nearby locations and its corresponding nodes under /etc/storelocator nodes.
Any input is highly appreciable.
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
The approximate conversions are:
You can use this logic to scan nodes and filter out neraby nodes.
Hi @RkR_F5
Hi
Please go through the below article:
http://theoryapp.com/store-locator-using-java/
The basic idea is as below:
Please note this will use the google geo API.
Thanks!
Hi,
The approximate conversions are:
You can use this logic to scan nodes and filter out neraby nodes.
Views
Likes
Replies
Views
Likes
Replies