fix check for near vs latlon, represent bools as strings in request param dict