modifies query for geoJSON data