Implemented full query logic, updated to return pure GeoJSON.