Geocoding with PowerShell

Version 3 of Google’s Geocoding API does not return information in CSV format. This updated code processes the XML returned by the new API.

Geocoding with PowerShell and Google Geocoding API V2

This function uses the Google Maps Geocoding API Version 2. It accepts objects with address, city, state and zip parameters. It then uses that information to find the longitude and latitude of the location and adds additional properties to the object. I use it with Import-CSV and Export-CSV to add information to a spreadsheet.