appbaseio/reactivemaps

PlacesSearch component should apply a GeoDistance query

siddharthlatest opened this issue · 1 comments

Currently, PlacesSearch applies a match query using the input value on the specified appbaseField prop. Instead, PlacesSearch component should be using a GeoDistance query with a range of 10mi from the {lat, lng} of the input location.

There should also be a prop doNotExecuteQuery which can be set to true to prevent running any query when the inputs change.

Fixed here: 78110b4 we don't need doNotExecuteQuery, any restriction can be set in customQuery method.