Error fetching video by location in Youtube Api V3

Asked

Viewed 125 times

2

1 answer

3


Add an action ray, otherwise think that he only looks for the exact coordinate. Here, his same query with locationRadius of 5km:

https://developers.google.com/apis-explorer/#s/youtube/v3/youtube.search.list? part=snippet&location=-12.2582688%252C-38.9442314&locationRadius=5km&maxResults=10&order=date&type=video&_h=1&

According to the documentation (my emphasis):

The locationRadius, together with the parameter location, defines the geographical area. If the coordinates associated with the video fall within that area, then the video can be included in the search results.

  • Resolve but not justify! Nothing indicates that the range of action is required! + 1

  • I’m not sure @Zuul, the documentation seems to indicate that it is necessary... I believe my interpretation of the exact coordinate is correct

  • 1

    Okay, I found the API V2 documentation where it clearly says that one depends on the other. In the V3 documentation their English is poorly translated and not clear enough ;) (You can edit the answer and say the same, it is correct what you said)

  • I put 1 meter in the request and returns 9 results, should be as exact as possible. Thanks for confirming, @Z

Browser other questions tagged

You are not signed in. Login or sign up in order to post.