4

I have a small number of location nodes with geofields, and need to programmatically get the distance between a location and a zip code. It would be ideal if I could get a query, or a sort, of my location nodes by proximity to the zip code. I couldn't easily tell how to do this in the geoPHP module.

1 Answer 1

3

In short : Use the Location Distance field in Views.

In detail : Check out the video http://www.youtube.com/watch?v=AxeskzN8BAc

1
  • 1
    The Location module has all the code in there. Thanks!
    – vintorg
    Commented Oct 16, 2013 at 20:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.