insideBoundingBox and Distance

Hi there, I understand using both insideBoundingBox and aroundLatLng separately but I was just wondering if the geoDistance you get from aroundLatLng’s getRankingInfo could be used with insideBoundingBox?

Essentially my use case is I want to show a bunch of results on a react native map to a user within the view of their map (insideBoundingBox), but I’d also like to tell them how close each result is to them

Thanks all

Hi @peruse.web,

aroundLatLng and aroundLatLngViaIP will be ignored if used along with this insideBoundingBox.

You could perform both queries separately and then combine the results before you display the results to your user.

Let us know how this works for you!