add location parameters to query