update document with distributed location querying