我尝试使用Google地理位置API本地化我的wifi设备。
但是,在文档中,它是精确的:
请求正文的wifiAccessPoints数组必须包含两个或多个WiFi接入点对象。 macAddress是必需的;其他所有字段都是可选的。
如果我有一个Wifi接入点,为什么需要两个或多个Wifi接入点?
我尝试发送:
{
"considerIp": "false",
"wifiAccessPoints": [
{
"macAddress": "00:25:9c:cf:1c:ac",
"signalStrength": -43,
"signalToNoiseRatio": 0
},
{
"macAddress": "00:25:9c:cf:1c:ad",
"signalStrength": -55,
"signalToNoiseRatio": 0
}
]
}
我有此回复:
{
"location": {
"lat": 33.3632069,
"lng": -117.0872092
},
"accuracy": 30.0
}
但是,当我尝试发送一个MAC地址时,我会收到以下响应:
{
"error": {
"errors": [
{
"domain": "geolocation",
"reason": "notFound",
"message": "Not Found"
}
],
"code": 404,
"message": "Not Found"
}
}
有此请求:
{
"considerIp": "false",
"wifiAccessPoints": [
{
"macAddress": "00:25:9c:cf:1c:ac"
}
]
}
根据此请求:
{
"considerIp": "false",
"wifiAccessPoints": [
{
"macAddress": "00:25:9c:cf:1c:ad"
}
]
}
Google锁定了从一个MAC地址定位的功能吗?