Search code examples
google-places-apigoogle-maps-api-2

how to get the photo in google places search api with radius tag


Google Places API
when I use radius=5000 as parameter with this api, it does not provide the photos tag in response, whereas if I use rank=distance it provides the photos tag, but the result only comes across the limited radius.


Solution

  • I'm facing the same problem and the only workaround for me is to call Details api with the "place_id" from search and check if the place has or not photos. Of course, this is not a proper solution because it needs to make unnecessary calls and it's way too slow.

    PS. You should not post you API Key.