All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Distance searching using latitude and longitude

Justin Taylor 4 Mar 2014 21:12 question, complete

I'm trying to get the Low Search Distance filter working - but for love nor money, this outputs ALL the results available. The channel and field names are correct; the fields are 'searchable'. What am I doing wrong?

{exp:low_search:results channel="locations" distance:from="50.7200|1.8800" distance:to="{locations_latitude}|{locations_longitude}" distance:radius="25"}

Replies

  1. Low 4 Mar 2014 21:17

    Use the field names without curly brackets, so: distance:to="locations_latitude|locations_longitude"
    Does that help?

  2. Justin Taylor 4 Mar 2014 21:46

    Clearly I've been staring at this too long!

    Thanks Low!