Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By proloy03 on
Hi,
Is there a way to calculate distance between two nodes which use the geolocation field?
geolocation_proximity module doesn't seem to do this or I am unable to make it work that way.
I would like to show something like, nearest 5 locations (of type node 2) with respect to node 1. Anyone with any experience?
Thanks,
Proloy
Comments
look at getdirections for clues
You could probably get some clues by looking the code for https://www.drupal.org/project/getdirections
It does some distance calculations and supports geolocation module