javascript - Google GeolocationAPI 未找到请求的实体

标签 javascript google-geolocation

所以我尝试使用 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/

相关文章:

Angular 4中的javascript

javascript - 在浏览器端编辑 javascript

javascript - 如何在 d3.js 旭日形图中的节点上设置初始 .focus()?

javascript - 如何每1秒刷新一次mysql帖子

google-maps - 该API项目无权使用该API。请确保在 API 控制台中激活此 API

python - python + json 与curl 的问题

javascript - 得到隆。纬度。对于给定国家/地区的给定邮政编码

google-maps-api-3 - 如何在 ionic2 中将标记移动到 map 上?

安卓地理围栏 : Trigger only while outside geofence

javascript - 用于用户事件的 Node + Github webhook