我有一个双重问题的位置跟踪使用三角(无线信号)。
编辑:你知道一些关于如何在Android / iOS中实现它的好的、清晰的文档/参考资料吗?
发布于 2015-08-08 20:11:34
For iOS
它也在户外工作吗?
是的,如果有WiFi信号
它在受保护的无线网络上工作吗?我的意思是,在比利时,我们不同的ISP提供热点功能,只有当您是客户时才能访问。无线信号一旦可用就可以使用吗?或者它也需要身份验证才能被使用?
它不需要身份验证。不确定它使用的是什么网络,但在城市里,它可能是惊人的精确。
编辑:你知道一些关于如何在Android / iOS中实现它的好的、清晰的文档/参考资料吗?
在iOS上,您只需使用与GPS跟踪相同的API - CLLocation。它使用适当的技术,基于设备的能力和所需的准确性。
发布于 2022-10-09 15:16:18
Android的例子
final TelephonyManager telephonyManager = (TelephonyManager) appContext.getSystemService(Context.TELEPHONY_SERVICE);
String networkOperator = telephonyManager.getNetworkOperator();
int mcc = Integer.parseInt(networkOperator.substring(0, 3));
int mnc = Integer.parseInt(networkOperator.substring(3));
String operatorName = telephonyManager.getNetworkOperatorName();
final GsmCellLocation cellLocation = (GsmCellLocation) telephonyManager.getCellLocation();
int cid = cellLocation.getCid();
int lac = cellLocation.getLac();https://stackoverflow.com/questions/31896470
复制相似问题