prepared the GeoNear query