REQUEST_DENIED when using the Google Places API

前端 未结 12 1377
庸人自扰
庸人自扰 2020-12-04 01:56

I\'m trying to make a request to the Google Places API, using the following url: https://maps.googleapis.com/maps/api/place/search/xml?location=37.77264,-122.409915&radi

12条回答
  •  不知归路
    2020-12-04 02:35

    Your key looks to be invalid, as mentioned by @Bryan Weaver in the comments. Substituting my own key in the request returns ZERO_RESULTS instead.

    BTW, you should also check out the list of supported types - educational%20services isn't one of them. That's not what's giving you the REQUEST_DENIED, but it's worth fixing anyway. If you ever want to specify multiple types, separate them with a pipe (|).

提交回复
热议问题