Skip to content

Commit 0a1b1c5

Browse files
committed
🌐 Changes the geocoder tool to use (now it's consistent with the exemplar)
1 parent 394eb52 commit 0a1b1c5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

ch04packaging/010Installation.ipynb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"outputs": [],
121121
"source": [
122122
"import geopy\n",
123-
"geocoder = geopy.geocoders.Yandex(lang=\"en_US\")"
123+
"geocoder = geopy.geocoders.Nominatim(user_agent=\"mphy0021\") "
124124
]
125125
},
126126
{
@@ -131,16 +131,16 @@
131131
{
132132
"data": {
133133
"text/plain": [
134-
"[Location(Cambridge, Cambridgeshire County, United Kingdom, (52.208145, 0.133023, 0.0)),\n",
135-
" Location(Cambridge, Ontario, Canada, (43.370599, -80.318989, 0.0)),\n",
136-
" Location(Cambridge, Middlesex County, Massachusetts, United States of America, (42.385899, -71.141684, 0.0)),\n",
137-
" Location(Cambridge, Washington County, State of Idaho, United States of America, (44.572039, -116.678507, 0.0)),\n",
138-
" Location(Cambridge, Isanti County, Minnesota, United States of America, (45.572595, -93.223783, 0.0)),\n",
139-
" Location(Cambridge, East London, Republic of South Africa, (-32.978267, 27.884695, 0.0)),\n",
140-
" Location(Cambridge, Waikato, New Zealand, (-37.889307, 175.465014, 0.0)),\n",
141-
" Location(Cambridge, Cambridgeshire County, United Kingdom, (52.210303, 0.176447, 0.0)),\n",
142-
" Location(Cambridge Bay, Nunavut, Canada, (69.11673, -105.067782, 0.0)),\n",
143-
" Location(Cambridge, Saint James, Jamaica, (18.291699, -77.895883, 0.0))]"
134+
"[Location(Cambridge, Cambridgeshire, East of England, England, United Kingdom, (52.2034823, 0.1235817, 0.0)),\n",
135+
" Location(Cambridge, Cambridgeshire, East of England, England, United Kingdom, (52.2034823, 0.1235817, 0.0)),\n",
136+
" Location(Cambridge, Middlesex County, Massachusetts, United States of America, (42.3750997, -71.1056157, 0.0)),\n",
137+
" Location(Cambridge, Region of Waterloo, Southwestern Ontario, Ontario, N1R 1T7, Canada, (43.3600536, -80.3123023, 0.0)),\n",
138+
" Location(Cambridge, Henry County, Illinois, United States of America, (41.3036472, -90.1928971, 0.0)),\n",
139+
" Location(Cambridge, Isanti County, Minnesota, 55008, United States of America, (45.5727408, -93.2243921, 0.0)),\n",
140+
" Location(Town Of Cambridge, Western Australia, Australia, (-31.935404, 115.79574791389207, 0.0)),\n",
141+
" Location(Cambridge, Story County, Iowa, 50046, United States of America, (41.8990768, -93.5294029, 0.0)),\n",
142+
" Location(Cambridge, Dorchester County, Maryland, 21613, United States of America, (38.5714624, -76.0763177, 0.0)),\n",
143+
" Location(Cambridge, Guernsey County, Ohio, 43725, United States of America, (40.031183, -81.5884561, 0.0))]"
144144
]
145145
},
146146
"execution_count": 2,

0 commit comments

Comments
 (0)