A VBA application for geocoding and reverse geocoding in Excel. Supports both Google's free and enterprise for business geocoder (Maps API for Work).
GIS and geospatial data science applications will usually require geocoding of locations or reverse geocoding of latitude/longitude at some point in the analysis. While most of this analysis is frequently done in something a little more involved than Excel (python, arcGIS, ESRI, etc.), sometimes I have found that doing something quick with a dataset in Excel can be more efficient than working with a SQL DB or creating a python script.
This project was influenced by a blog post by josephglover. josephglover's module on accessing the free Google geocoder was the foundation which I used to make the reverse geocoder and to add flexibility to use Google's Maps API for Work Enterprise geocoder.
gintType
constant equal to 1
and insert your Google Client ID and Google Secret Key into the gstrClientID
and gstrKey
constants respectively.gintType
constant equal to 2
and insert your API key into the gstrKey
constant.gintType
constant equal to 0
.gintType
to 0
and insert your new API key into the gstrKey
constant and you should still be able to geocode in Excel.=AddressGeocode(address)
=ReverseGeocode(lat,long)