【问题标题】:Calculating a location using distance and latitude and longitude使用距离和纬度和经度计算位置
【发布时间】:2021-05-10 03:56:05
【问题描述】:

我有五个纬度和经度以及它们与某个位置的距离。问题是,有什么方法可以使用这些信息计算该特定位置的纬度和经度?

【问题讨论】:

  • 你有当前位置作为地址吗?
  • 没有纬度和经度
  • 在向量代数中点和距离给出圆,要找到一个准确的位置,你不仅需要距离还需要方向
  • 有什么方法可以找到到达那个点的方向吗?

标签: java android geolocation location


【解决方案1】:

这可能会有所帮助:

public class Distance {
  public static void main(String args) {
    double longitude1;// Starting Point longitude
    double latitude1; // Starting Point latitude
    double longitude2; // Destination longitude
    double latitude2;// Destination latitude

    double distance = Math.sqrt((longitude1 - longitude2) * 2 + (latitude1 + latitude2) * 2);

//距离公式是基于欧几里得距离。如需更清晰,请访问:https://en.wikipedia.org/wiki/Euclidean_distance } }

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-04-20
    • 2013-04-16
    • 1970-01-01
    • 1970-01-01
    • 2017-06-17
    • 2018-09-02
    • 1970-01-01
    相关资源
    最近更新 更多