回答編集履歴
2
a
answer
CHANGED
@@ -4,4 +4,19 @@
|
|
4
4
|
[Usage Limits for Google Maps Platform Web Services](https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits)
|
5
5
|
Google Map は無料だとあまり使わせてもらえないのかもしれません。
|
6
6
|
|
7
|
-
[Github geocoder](https://github.com/DenisCarriere/geocoder) を見ると、他にも利用できる地図サービスはあるようなので、もう少し沢山使えるところで試してみてはどうでしょうか。
|
7
|
+
[Github geocoder](https://github.com/DenisCarriere/geocoder) を見ると、他にも利用できる地図サービスはあるようなので、もう少し沢山使えるところで試してみてはどうでしょうか。
|
8
|
+
|
9
|
+
----
|
10
|
+
|
11
|
+
## 追記
|
12
|
+
|
13
|
+
確かに公式通りのサンプルを実行したら、1回目から OVER_QUERY_LIMIT になりました。issue 等みてもわからなかったのですが、ライブラリの問題もしくは Google 側の仕様が変わったりしたのかもしれません。
|
14
|
+
|
15
|
+
とりあえず [OpenStreetMap](https://openstreetmap.jp/) というオープンで進められている地図プロジェクトのサービスで緯度/経度をとれました。
|
16
|
+
```
|
17
|
+
# -*- coding: utf-8 -*-
|
18
|
+
import geocoder
|
19
|
+
|
20
|
+
g = geocoder.osm('Tokyo')
|
21
|
+
print('緯度: {}, 経度:{}'.format(*g.latlng))
|
22
|
+
```
|
1
あ
answer
CHANGED
@@ -2,7 +2,6 @@
|
|
2
2
|
何回か使って、API の利用制限に引っかかったのだと思います。
|
3
3
|
|
4
4
|
[Usage Limits for Google Maps Platform Web Services](https://developers.google.com/maps/premium/previous-licenses/articles/usage-limits)
|
5
|
+
Google Map は無料だとあまり使わせてもらえないのかもしれません。
|
5
6
|
|
6
|
-
[Github geocoder](https://github.com/DenisCarriere/geocoder) を見ると、他にも利用できる地図サービスはあるようなので、もう少し沢山使えるところで試してみてはどうでしょうか。
|
7
|
+
[Github geocoder](https://github.com/DenisCarriere/geocoder) を見ると、他にも利用できる地図サービスはあるようなので、もう少し沢山使えるところで試してみてはどうでしょうか。
|
7
|
-
|
8
|
-
無料だとあまり使わせてもらえないのかもしれません。
|