revert: fix(location): fix parameter handling on search()

This reverts commit 90532f5e3c2016c99833a4dd779a5c4718c84f4d.

The commit contains references to minErr that are not available
in the stable branch.