【问题标题】:Blackberry cache reverse geocode address info with proximity黑莓缓存反向地理编码地址信息与邻近度
【发布时间】:2012-02-16 18:55:28
【问题描述】:

大多数人每天仅限于大约 5 或 6 个地点(工作、家庭、学校、商店等)。我想通过缓存其中一些访问量最大的位置来加速地址显示。我已经能够使用谷歌地图 GPS 和 JSON 以及 Locator.reverseGeocode 获取地址信息。缓存此信息并快速检查接近度的最佳方法是什么?我找到了this GPS distance calculation example 并让它工作。有没有更快的方法来检查接近度?

【问题讨论】:

    标签: blackberry geolocation gps reverse-geocoding proximity


    【解决方案1】:

    请先查看类似问题:Optimization of a distance calculation function

    我们可以在距离计算中更改几项以提高性能:

    1. 测量设备速度并相应地减少或增加接近测试的时间
    2. 三角函数计算占用了大部分性能,但它可能会执行得更快。首先使用lookup table method进行粗体距离计算,然后如果距离小于接近限制+不确定限制,使用CORDIC method进行更精确的计算。
    3. 为 Math.PI/180.0 和 180.0/Math.PI 使用常量

    几个可能有用的链接:
    非常有用的explanations of CORDIC,尤其是doc from Parallax for dummies
    Fast transcendent / trigonometric functions for Java
    Cordic.java at Trac by Thomas B. Preusser
    Cordic.java at seng440 proj
    Sin/Cos look-up table source at processing.org by toxi

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多