gpt4 book ai didi

google-geolocation - 地理定位 API : Requested entity was not found

转载 作者:行者123 更新时间:2023-12-04 03:53:00 33 4
gpt4 key购买 nike

我是第一次尝试 Geolocation API,但无法正常工作。尝试来自 https://developers.google.com/maps/documentation/geolocation/overview 的示例但总是返回 404。我已经为这个项目启用了计费。

请求正文:

{
"homeMobileCountryCode": 412
}

响应:

{
"error": {
"code": 404,
"message": "Requested entity was not found.",
"errors": [
{
"message": "Requested entity was not found.",
"domain": "global",
"reason": "notFound"
}
],
"status": "NOT_FOUND"
}
}

最佳答案

我遇到了同样的问题。然后我查找了未关联的计费帐户。链接后,我尝试通过 postman 再次请求它,它确实给我一个很长很准确的回复

请求 1

{
"considerIp": "true",
"wifiAccessPoints": [
{
"macAddress": "00:1e:32:f2:32:ff"
}

]
}

请求2

{
"homeMobileCountryCode": 412
}

对两个请求的响应

{
"location": {
"lat": 31.473738999999995,
"lng": 74.253135
},
"accuracy": 1528
}

关于google-geolocation - 地理定位 API : Requested entity was not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64172680/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com