.Net Core Library for Generic Map Usage
Implementation of Google Maps API for retrieving map information into a simple POCO. This can easily be extended to use other map services by implementing the IMap and IAddress interfaces.
Simply make a new IMap object and call its GetAddress method to produce a simple to use IAddress object
IMap map = new GoogleMap(YOUR_GOOGLE_API_KEY);
IAddress address = map.GetAddress(SOME_ADDRESS);
// now you have a simple object:
Console.WriteLine($"the full address is: {address.FormattedAddress}");
Console.WriteLine($"it is located in the: {address.Neighborhood} neighborhood");'
Console.WriteLine($"latitude: {address.Location.Latitude}, longitude: {address.Location.Longitude}");'
- Google Maps