2

I need to add a custom (exposed?) filter to a view - it would query a large 'postcodes' table to find out coordidnates of postcodes accross the UK, and then perform a comparison of 2 postcodes (belonging to users) to find out the distance, and filter out users that are over a certain distance.

I've got the scripts to do this already, its just I'm really new to Drupal so the whole blocks/views/nodes/content types/filters thing is still confusing me a little.

Perhaps what I'm asking is beyond the scope of a filter.

0

2 Answers 2

4

Another option is the Location module, which integrates with Views and lets you do proximity searches. While not exactly what you want, this handbook page should help you get started.

1

From what I understand that may be possible with the Views PHP Filter Module. There you can create a list of nid's that you want to intersect or remove from the views result. Take a look at the example here.

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.