📜  python openstreetmap 多纬度 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:19.897000             🧑  作者: Mango

代码示例1
# ...
coordinates = []
for result in results:
    coordinates.append((result[5], result[6]))

lat_center = sum([coordinate[0] for coordinate in coordinates]) / len(
    coordinates
)
lng_center = sum([coordinate[1] for coordinate in coordinates]) / len(
    coordinates
)

html = r"""

    
        
        
        
        
        
    
        
" self.view.setHtml(html)