【问题标题】:Google maps: Check if my location is within my radius谷歌地图:检查我的位置是否在我的半径范围内
【发布时间】:2015-04-01 23:12:22
【问题描述】:

我目前正在使用谷歌地图 API,而且我还很新。 但是我需要检查我当前的位置是否在我的标记的半径内,所以我可以执行一个函数。

有谁知道我如何检查?

【问题讨论】:

标签: api google-maps location maps marker


【解决方案1】:
  1. 定义恒定半径
  2. 使用此https://developers.google.com/maps/documentation/android/utility/#spherical 计算您的位置与标记位置之间的距离
  3. 检查距离是否

【讨论】:

    猜你喜欢
    • 2021-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-10-08
    • 1970-01-01
    • 2023-03-31
    相关资源
    最近更新 更多