This seems to say that only a logged in member can see who's nearby anything/anyone.  Don't we want to allow non-logged-in visitors to see who's near a specified location?  In other words, shouldn't this be outside of the member-logged-in if block?