且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何评估 GPS 信号强度?(iPhone)

更新时间:2022-05-07 23:28:21

我以前用过这样的图:

if (someLocation.horizontalAccuracy < 0)
{
    // No Signal
}
else if (someLocation.horizontalAccuracy > 163)
{
    // Poor Signal
}
else if (someLocation.horizontalAccuracy > 48)
{
    // Average Signal
}
else
{
    // Full Signal
}

但老实说,它对用户来说并不是很有效.它会显示为低准确度,但当他们查看地图应用程序时,它会几乎完美地定位它们(​​尽管它们周围有一个圆圈).

but to be honest, it didn't really work very well for users. It would show as low accuracy, but when they looked at the maps app, it would have located them almost perfectly (albeit with a circle around them).

与其尝试定义准确度级别,而且如果您的应用是基于地图的,您能否像地图一样将水平准确度显示为圆形叠加层?然后用户可以自己决定它是否足够准确.

Rather than trying to define a level of accuracy, and if your app is map based, could you do what Maps does and show the horizontal accuracy as an circular overlay? Then the user can decide for themselves if it's accurate enough.