Update erlang client to query local rtree.

*** Unstable

On branch master