简体   繁体   English

请求方向API ANDROID时,请求被拒绝

[英]Request Denied when request Direction API ANDROID

I want make a route in maps, so i use Direction API from google maps, but i always get REQUEST DENIED & This IP, site or mobile application is not authorized to use this API key. 我想在地图上做一条路线,所以我使用Google地图上的Direction API,但我总是得到REQUEST DENIED&此IP,站点或移动应用程序无权使用此API密钥。

I already change to none restriction, and already make the new project, but got same response, so what is the problem ? 我已经变为无限制,并且已经创建了新项目,但是得到了相同的响应,那么问题出在哪里呢?

i use this library https://github.com/akexorcist/Android-GoogleDirectionLibrary Thanks. 我使用这个库https://github.com/akexorcist/Android-GoogleDirectionLibrary谢谢。

This is the log message 这是日志消息

这是日志消息

This answer seems fitting: 这个答案似乎很合适:

"This IP, site or mobile application is not authorized to use this API key" “此IP,站点或移动应用程序无权使用此API密钥”

https://stackoverflow.com/a/24235630/5644761 https://stackoverflow.com/a/24235630/5644761

The API key is restricted to some IP and the one you are connecting with is not white listed you need to add it into the console , select the API key then add the IP adresse . API密钥仅限于某些IP,并且与之连接的密钥不是白名单,您需要将其添加到控制台 ,选择API密钥,然后添加IP地址。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM