API: document spatial query