geo_in_rectangle: extract computing code for in_rectangle_data