added centroid based query api