地理位置API:找不到请求的实体



我第一次尝试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"
}
}

我也面临同样的问题。然后我查了一下没有链接的账单账户。链接后,我试图通过邮递员再次请求它,它确实给了我一个长而准确的回复

请求1

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

请求2

{
"homeMobileCountryCode": 412
}

对两个请求的响应

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

最新更新