Closed werkstattcodes closed 2 years ago
I believe Google will still display results outside of your desired radius:
https://developers.google.com/maps/documentation/places/web-service/search-text#radius
Defines the distance (in meters) within which to return place results. You may bias results to a specified circle by passing a location and a radius parameter. Doing so instructs the Places service to prefer showing results within that circle; results outside of the defined area may still be displayed.
First, many thanks for this amazing package.
I am using
google_places
to check for the presence of a specific company, e.g. a bank, within a specific radius (100 m) around a lat/long combination. Surprisingly, however, the result includes a company which is further away than the radius. Below an example where the returned object is more than 300 m away, although the radius is set to 100 m. Is this a bug, or am I missing something how to limit thegoogle_places
results to the value stipulated in the radius. Many thanks.Created on 2022-04-05 by the reprex package (v2.0.1)