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

zeezhao’s picture

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