implemented lookupgeomunion function

Still need to test!