main.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:LineBot 作者: RaenonX 项目源码 文件源码
def calculate(source_coord, target_coord):
        """
        Calculate the distance between provided coordinates and the direction from source coordinates to target coordinates.

        Returns:
            CoordinateRelationship object.
        """
        dist = vincenty((source_coord.lat, source_coord.lng), (target_coord.lat, target_coord.lng)).km
        deg = CoordinateRelationship._calculate_deg(source_coord, target_coord)

        return CoordinateRelationship(dist, deg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号