Initial full version of solution for geospatial query.