回答編集履歴

2

a

2018/10/04 14:35

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -11,3 +11,33 @@
11
11
 
12
12
 
13
13
  [Github geocoder](https://github.com/DenisCarriere/geocoder) を見ると、他にも利用できる地図サービスはあるようなので、もう少し沢山使えるところで試してみてはどうでしょうか。
14
+
15
+
16
+
17
+ ----
18
+
19
+
20
+
21
+ ## 追記
22
+
23
+
24
+
25
+ 確かに公式通りのサンプルを実行したら、1回目から OVER_QUERY_LIMIT になりました。issue 等みてもわからなかったのですが、ライブラリの問題もしくは Google 側の仕様が変わったりしたのかもしれません。
26
+
27
+
28
+
29
+ とりあえず [OpenStreetMap](https://openstreetmap.jp/) というオープンで進められている地図プロジェクトのサービスで緯度/経度をとれました。
30
+
31
+ ```
32
+
33
+ # -*- coding: utf-8 -*-
34
+
35
+ import geocoder
36
+
37
+
38
+
39
+ g = geocoder.osm('Tokyo')
40
+
41
+ print('緯度: {}, 経度:{}'.format(*g.latlng))
42
+
43
+ ```

1

2018/10/04 14:35

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -6,10 +6,8 @@
6
6
 
7
7
  [Usage Limits for Google Maps Platform Web Services](https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits)
8
8
 
9
+ Google Map は無料だとあまり使わせてもらえないのかもしれません。
10
+
9
11
 
10
12
 
11
13
  [Github geocoder](https://github.com/DenisCarriere/geocoder) を見ると、他にも利用できる地図サービスはあるようなので、もう少し沢山使えるところで試してみてはどうでしょうか。
12
-
13
-
14
-
15
- 無料だとあまり使わせてもらえないのかもしれません。