Skip to content

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.

License

Notifications You must be signed in to change notification settings

jchristn/GoogleMapsClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GoogleMapsClient

alt tag

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!

New in v1.1.15

  • Implemented IDisposable pattern on GoogleMaps class
  • Removed use of var and anonymous types
  • Added ConfigureAwait(false) to all awaited calls

Help and Feedback

First things first - do you need help or have feedback? File an issue here!

Example

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);
}

Version History

Refer to CHANGELOG.md for version history.

About

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.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors 2

  •  
  •  

Languages