I needed a simple way to parse addresses and resolve coordinates to an address. Plug in a Google Maps API key and you're all set.
Special thanks to @jorgeaponte and the community for helping improve this library!
- Implemented IDisposable pattern on GoogleMaps class
- Removed use of var and anonymous types
- Added ConfigureAwait(false) to all awaited calls
First things first - do you need help or have feedback? File an issue here!
using GoogleMapsClient;
using (GoogleMaps client = new GoogleMaps("[your API key here]"))
{
GoogleMapsAddress addr;
GoogleMapsTimestamp ts;
// Get details about coordinates
addr = await client.QueryCoordinatesAsync(37.4220578, -122.0840897);
// Get details about an address
addr = await client.QueryAddressAsync("1600 Amphitheatre Pkwy Mountain View CA");
// Get timestamp for coordinates
ts = await client.LocalTimestampAsync(37.4220578, -122.0840897, DateTime.Now);
// Get timestamp for address
ts = await client.LocalTimestampAsync("1600 Amphitheatre Pkwy Mountain View CA", DateTime.Now);
}Refer to CHANGELOG.md for version history.