- drupal 7.12
Modules in use:
I have a pretty standard view which has a user entered proximity filter for distance from a zip code, used to shows stores near a certain location (your standard dealer/store locater search). I would like to add a calculated field (or something) to show how far each store is from the entered zip code. This field would only be used in the view, and would not need to get saved to the node it represents, since this distance will change depending on the entered zip code.
Can anyone point me in the right direction?
I guess I should have looked through the module better. Here's the answer (tip: it's built right in!):
And that does it!
just add the "Location: Distance / Proximity" field to your view. That should show the distance from the selected location and either the current user or a specific location. The other answer is wrong... doesn't actually answer the question, just explains how to set up the view without showing each result's distance.
Also note this only works with Field display... beware of using Display Suite as it would require a complicated custom code field.