如果我有如下地址数据帧:
id Address Latitude Longitude
01 Via Benedetto Croce 112, Rome, Italy
02 Via Aristide Leonori 46, Rome, Italy
03 Viale Marconi 197, Rome, Italy
如何使用Python中的googleapi获得它们的坐标(经度和纬度)?谢谢。在
^{pr2}$下面是我从Python客户机库中找到的googlemapsapi Web服务,但是它失败了:raise超时.googlemaps()
https://github.com/googlemaps/google-maps-services-python
import googlemaps
from datetime import datetime
gmaps = googlemaps.Client(key='googlemap ak')
# Geocoding an address
geocode_result = gmaps.geocode('Via Benedetto Croce 112, Rome, Italy')
print(geocode_result)
试试这个。它使用提名。在
相关问题 更多 >
编程相关推荐