2017-11-09 10 views
-1

私は郵便番号のデータをExcelに持っています。私はリストとしてPythonで入力します。 ジオコーダーライブラリを使用して緯度と経度を投稿番号で取得するので、後でマップに配置できます。Pythonジオコーダの上限

g = geocoder.google('1700002') 
g.latlng 

g.latlngには[latitude、longitude]というリストがあります。 は文字列のみを取ります。私はポイント0(133.0 = 130)を取り除くために値をfloatからintに変更しました。それを文字列で読んでください。

yubin_frame = yubin['yubin'] #post data 
#1st put it to ing to get rid of float 
yubin_list_int = map(int, yubin_list) 
#then make it to string to in put all to string 
yubin_list_str = map(str, yubin_list_int) 

私はこれをfor-loopで作成し、このように緯度と経度の両方のリストを作成しました。

#create a new list that include all data in Yubin_zahyou list 
Yubin_zahyou = [] 
for i in range(len(yubin_list_str)): 
    Yubin_zahyou.append(geocoder.google(yubin_list_str[i]).latlng) 

私の問題は、私には30000近くのデータがあり、ジオコーダはわずか2500個の入力しかありません。これはジオコーダーに限界があることを意味するのでしょうか、なんとか間違いを犯しましたか?

+1

[Google Maps Geocoding API使用制限](https://developers.google.com/maps/documentation/geocoding/usage-limits)。 – ekhumoro

答えて

関連する問題