maplib.py 文件源码

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

项目:PGO-mapscan-opt 作者: seikur0 项目源码 文件源码
def cover_circle(self,loc,radius):
        lat,lng = loc
        output = []
        r_lat = radius / earth_Rrect*180/pi
        r_lng = r_lat /cos(min(abs(lat)+r_lat,90.0)*pi/180)
        locations = self.cover_region((lat-r_lat,lng-r_lng),(lat+r_lat,lng+r_lng))
        for location in locations:
            dist = get_distance(loc,location)
            if dist < radius:
                output.append(location)
        return output
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号