Something like? I'm not 100% positive it's always the nearest corner, since I recall getting some results I didn't quite expect, but it's something similar and I think at the very least the direction won't vary across playthroughs so long as the position is held constant. And then yeah, either careful trial and error or just put a big cloud of Area IDs in the right area and call it good.
__________________
|