merging autocomplete with distances