1
我正在使用谷歌地圖v2的android。我想調用api來獲取android設備的分數。我註冊了Google控制檯密鑰,我可以在android上查看地圖。我用這個鍵在方向API調用像這樣包括:谷歌地圖從Android設備調用方向api的錯誤
https://maps.googleapis.com/maps/api/directions/json?origin=Toronto&destination=Montreal&sensor=false&key=API_KEY
的API_KEY是我的地圖創建的關鍵:
但是,當我從Android應用程序請求調用方向api,我得到這個返回:
{
"error_message" : "This IP, site or mobile application is not authorized to use this API key.",
"routes" : [],
"status" : "REQUEST_DENIED"
}
我該如何解決這個錯誤?請幫助
謝謝
這是正確的。非常感謝你的回答。這非常有用。 – user1597721
從通話中刪除API密鑰是關鍵。謝謝。 –
這不會有一個使用限制嗎? – Mauker