implemented geospatial querying