I’m assuming that you’re using ACF4 because this is built into ACF5
open the file in your plugins
advanced-custom-fields/core/controllers/location.php
Look for the function/method rule_match_post_category()
Everything you need is there, you’ve basically just got to swap out post_category
for your custom taxonomy.