所以我尝试使用 Google GeolocationAPI。它成功发送了任务,并且还使用我的 api key 成功进行了身份验证,但它返回给我这个
{
"error": {
"code": 404,
"message": "Requested entity was not found.",
"errors": [
{
"message": "Requested entity was not found.",
"domain": "global",
"reason": "notFound"
}
],
"status": "NOT_FOUND"
}
}
我请求的网址是 https://www.googleapis.com/geolocation/v1/geolocate?key=MY_KEY带有文档中描述的帖子。
提前致谢
最佳答案
我建议您查看documentation :
正如您所读到的:
Before you start developing with the Geolocation API, review the authentication requirements (you need an API key) and the API usage and billing information (you need to enable billing on your project).
在验证我的账单信息之前,我遇到了完全相同的错误。我是如何意识到这一点的,是使用地理编码 API,它确实返回了更好的错误。
关于javascript - Google GeolocationAPI 未找到请求的实体,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63585661/