【问题标题】:Calculate bearing between two latlong flutter计算两个经纬度颤动之间的方位
【发布时间】:2023-01-24 14:55:38
【问题描述】:

如何计算两个纬度和经度之间的方位角,我需要在谷歌地图中使用它来进行图标旋转。

【问题讨论】:

    标签: flutter google-maps


    【解决方案1】:

    导入“包:geolocator/geolocator.dart”;

    该地理定位器可以计算两个位置之间的方位。

    double calculatedRotation = Geolocator.bearingBetween(
                start.latitude,
                start.longitude,
                end.latitude,
                end.longitude);
    

    【讨论】:

      猜你喜欢
      • 2019-07-19
      • 2011-12-28
      • 1970-01-01
      • 1970-01-01
      • 2018-06-11
      • 1970-01-01
      • 2013-09-01
      • 2012-10-13
      • 2016-06-27
      相关资源
      最近更新 更多