How to sort the distance of Google Places

I’m building a web app to show the specific places name and program registration link according to current user location. I am using my custom Api for showing Places name, registration link and address and also for calculating distance I am using Google Api. The problem I am facing to sort the RG by distance.

Please help to fix the problem.

1 Like

I’ve only been able to sort using JavaScript or the Ultimate Toolkit plugin (note: documentation is lacking / dead links) and it’s distance calculation action

Thank you for your reply. If possible, please give hints in that case how to use JavaScript?