Blackberry 黑莓全球定位系统标准
我正在为BB开发一款具有GPS功能的应用程序。但问题是,GPS标准因运营商和设备而异。那么,有人知道可以使用哪些不同的标准吗?我试图使用不同的链接BB支持论坛,但我没有得到任何保证的方式,这应该适用于每一种情况。提前谢谢 谢谢,;Blackberry 黑莓全球定位系统标准,blackberry,Blackberry,我正在为BB开发一款具有GPS功能的应用程序。但问题是,GPS标准因运营商和设备而异。那么,有人知道可以使用哪些不同的标准吗?我试图使用不同的链接BB支持论坛,但我没有得到任何保证的方式,这应该适用于每一种情况。提前谢谢 谢谢,; 无编辑:抱歉,刚才注意到您的问题是关于承运人的标准。。。所以这不是确切的答案 我不是黑莓GPS标准方面的专家,我的答案是基于我使用过几次它 根据我的经验,GPS标准是基于一组要求精度、功耗和成本的,您可以将这些输入标准对象。例如,这里是我从网上得到的一些代码 /**
无编辑:抱歉,刚才注意到您的问题是关于承运人的标准。。。所以这不是确切的答案 我不是黑莓GPS标准方面的专家,我的答案是基于我使用过几次它 根据我的经验,GPS标准是基于一组要求精度、功耗和成本的,您可以将这些输入标准对象。例如,这里是我从网上得到的一些代码
/**
* assisted: Use this mode to get location information from satellites using a PDE. This mode allows a BlackBerry device
* application to retrieve location information faster than the autonomous mode and more accurately than the cell site mode.
* To use this mode requires wireless network coverage, and the BlackBerry device and the wireless service provider must
* support this mode.
*/
private Criteria getAssistedCriteria(int powerConsumption) {
Criteria criteria = new Criteria();
criteria.setHorizontalAccuracy(100);
criteria.setVerticalAccuracy(100);
criteria.setCostAllowed(true);
criteria.setPreferredPowerConsumption(powerConsumption);
return criteria;
}
/**
* autonomous: Use this mode to get location information from the GPS receiver on the BlackBerry device without assistance
* from the wireless network. This mode allows a BlackBerry device application to retrieve location information that has highaccuracy,
* and does not require assistance from the wireless network. However, the speed at which this mode retrieves
* location information is slower than the other modes.
*/
private Criteria getAutonomousPosCriteria() {
Criteria criteria = new Criteria();
criteria.setCostAllowed(false);
return criteria;
}
/**
* cell site: Use this mode to get location information from cell site towers. This mode allows a BlackBerry device application
* retrieve location information faster than the assisted and autonomous modes. However, the accuracy of the location
* information is low-level and does not provide tracking information such as speed or route information. Using this mode
* requires wireless network coverage and that both the BlackBerry device and the wireless service provider support this mode.
*/
private Criteria getCellSiteCriteria() {
Criteria criteria = new Criteria();
criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);
criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);
criteria.setCostAllowed(true);
criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);
return criteria;
}
完整文件位于:
看看这个JavaDoc中的表:我现在也在处理这个问题。。。如果您没有看到它们,这两个链接对我很有帮助:最近在Verizon论坛上的一些讨论-看起来它们只支持独立模式: