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.

3

In short : Use the Location Distance field in Views.

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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