我想找到附近的餐廳,我提出如下要求
它說提供的 API 密鑰無效,但我從谷歌控制臺啟用了 api 密鑰
這是我的要求:-
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=21.17,72.31&radius=1000&type=restaurant&key=///My api key
這是回應:-
{
"error_message": "The provided API key is invalid.",
"html_attributions": [],
"results": [],
"status": "REQUEST_DENIED"
}
uj5u.com熱心網友回復:
添加這樣的位置:- 21.170240,72.831062 使用 , 而不是,
嘗試像這樣呼叫請求:-
https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=21.170240,72.831062&radius=1000&type=restaurant&key=/// api key
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/397843.html
