Locate Portal (3.5e Spell)

You learn whether or not there are any portals in range. If there are, you learn the direction, to the nearest five degrees, to the nearest portal, and an approximation of its distance. If the nearest portal is more than a mile away, you learn the distance to the nearest mile; if it's between 600 feet and a mile, you learn it to the nearest 600 feet; if it's within 600 feet, you learn it to the nearest 60, and if it's within 60', you know the exact 5' square that it's in.

You may also specify a kind of portal. You may choose only interplanar portals, or only portals to a specific plane or list of planes. Portals that don't meet those restrictions will not be detected by this spell.