Using GeoPy to Add GPS info to DepEd School Data
Jun 23, 2021
We have a list of DepEd Schools without any known Latitude, Longitude information. We reproduce a partial list of schools below:
We follow the steps outlined here:
We import the needed Python modules
Since we are using a free gateway, we need to throttle back the requests. I copied from this:
python 3.x — Error 502 while trying to use geopy and ArcGIS — Stack Overflow
And it has the bonus of appending the results to a file. In my case, I called the output file as GeoCodedSchools.csv