2017-03-19 81 views
2

我可以使用谷歌地圖API直接HTTP請求以查找附近的地點嗎?我休耕他們的文檔 https://developers.google.com/places/web-service/search 我創建API密鑰,但是當我試圖從這樣一個瀏覽器請求的HTTP: https://maps.googleapis.com/maps/api/place/textsearch/json?query=123+main+street&key=API_KEY附近的地方查找請求

我得到這個消息:

<PlaceSearchResponse> 
<status>REQUEST_DENIED</status> 
<error_message> 
This API project is not authorized to use this API. Please ensure this API is activated in the Google Developers Console: https://console.developers.google.com/apis/api/places_backend?project=_ 
</error_message> 
</PlaceSearchResponse> 

什麼項目

回答

2

第1步:去Google Console

步驟2:選擇項目(左上角) how to select project ?

第3步:去圖書館,並點擊谷歌Places API的Web服務

Google Places API Web Service ?

第4步:然後點擊啓用 ENABLE Button ?