Skip to content

Commit 8957d15

Browse files
committed
Changed Yandex geocoder to GeocodeFarm geocoder
[Geocode.Farm](https://www.geocode.farm/geocoding/free-api-documentation/) allows 250 requests per day per IP address without an API key
1 parent e340b8a commit 8957d15

File tree

1 file changed

+60
-17
lines changed

1 file changed

+60
-17
lines changed

ch00python/010exemplar.ipynb

Lines changed: 60 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,13 @@
6161
},
6262
{
6363
"cell_type": "code",
64-
"execution_count": 1,
65-
"metadata": {},
64+
"execution_count": 2,
65+
"metadata": {
66+
"ExecuteTime": {
67+
"end_time": "2020-08-06T12:02:44.411668Z",
68+
"start_time": "2020-08-06T12:02:44.323217Z"
69+
}
70+
},
6671
"outputs": [],
6772
"source": [
6873
"import geopy # A python library for investigating geographic information.\n",
@@ -83,31 +88,27 @@
8388
},
8489
{
8590
"cell_type": "code",
86-
"execution_count": 2,
87-
"metadata": {},
91+
"execution_count": 4,
92+
"metadata": {
93+
"ExecuteTime": {
94+
"end_time": "2020-08-06T12:02:53.460489Z",
95+
"start_time": "2020-08-06T12:02:50.561415Z"
96+
}
97+
},
8898
"outputs": [
8999
{
90100
"data": {
91101
"text/plain": [
92-
"[Location(Cambridge, Cambridgeshire County, United Kingdom, (52.208145, 0.133023, 0.0)),\n",
93-
" Location(Cambridge, Ontario, Canada, (43.370599, -80.318989, 0.0)),\n",
94-
" Location(Cambridge, Middlesex County, Massachusetts, United States of America, (42.385899, -71.141684, 0.0)),\n",
95-
" Location(Cambridge, Washington County, State of Idaho, United States of America, (44.572039, -116.678507, 0.0)),\n",
96-
" Location(Cambridge, Isanti County, Minnesota, United States of America, (45.572595, -93.223783, 0.0)),\n",
97-
" Location(Cambridge, East London, Republic of South Africa, (-32.978267, 27.884695, 0.0)),\n",
98-
" Location(Cambridge, Waikato, New Zealand, (-37.889307, 175.465014, 0.0)),\n",
99-
" Location(Cambridge, Cambridgeshire County, United Kingdom, (52.210303, 0.176447, 0.0)),\n",
100-
" Location(Cambridge Bay, Nunavut, Canada, (69.11673, -105.067782, 0.0)),\n",
101-
" Location(Cambridge, Saint James, Jamaica, (18.291699, -77.895883, 0.0))]"
102+
"[Location(Cambridge, UK, (52.2053855332241, 0.12181995849728, 0.0))]"
102103
]
103104
},
104-
"execution_count": 2,
105+
"execution_count": 4,
105106
"metadata": {},
106107
"output_type": "execute_result"
107108
}
108109
],
109110
"source": [
110-
"geocoder = geopy.geocoders.Yandex(lang=\"en_US\")\n",
111+
"geocoder = geopy.geocoders.GeocodeFarm()\n",
111112
"geocoder.geocode('Cambridge', exactly_one=False)"
112113
]
113114
},
@@ -972,7 +973,49 @@
972973
"name": "python",
973974
"nbconvert_exporter": "python",
974975
"pygments_lexer": "ipython3",
975-
"version": "3.7.3"
976+
"version": "3.7.5"
977+
},
978+
"toc": {
979+
"base_numbering": 1,
980+
"nav_menu": {},
981+
"number_sections": true,
982+
"sideBar": true,
983+
"skip_h1_title": false,
984+
"title_cell": "Table of Contents",
985+
"title_sidebar": "Contents",
986+
"toc_cell": false,
987+
"toc_position": {},
988+
"toc_section_display": true,
989+
"toc_window_display": true
990+
},
991+
"varInspector": {
992+
"cols": {
993+
"lenName": 16,
994+
"lenType": 16,
995+
"lenVar": 40
996+
},
997+
"kernels_config": {
998+
"python": {
999+
"delete_cmd_postfix": "",
1000+
"delete_cmd_prefix": "del ",
1001+
"library": "var_list.py",
1002+
"varRefreshCmd": "print(var_dic_list())"
1003+
},
1004+
"r": {
1005+
"delete_cmd_postfix": ") ",
1006+
"delete_cmd_prefix": "rm(",
1007+
"library": "var_list.r",
1008+
"varRefreshCmd": "cat(var_dic_list()) "
1009+
}
1010+
},
1011+
"types_to_exclude": [
1012+
"module",
1013+
"function",
1014+
"builtin_function_or_method",
1015+
"instance",
1016+
"_Feature"
1017+
],
1018+
"window_display": false
9761019
}
9771020
},
9781021
"nbformat": 4,

0 commit comments

Comments
 (0)