Small c# library for geocoding (using the google maps API)
https://www.nuget.org/packages/Adc.GoogleMaps.ApiHandler/
var address = new GeoAddress
{
Street = "Grote Markt",
City = "Brussel"
};
var location = Geocoding.GetLocationFromAddress(address);
Console.WriteLine(@"{0}, {1}", location.Latitude, location.Longitude);
var mylocation = new GeoLocation()
{
Latitude = "50.25",
Longitude = "3.15"
};
var myaddress = Geocoding.GetAddressFromLatLong(mylocation);
Console.WriteLine(myaddress.ToString());
Get a static map for 1 location, multiple markers can be added
var mapData = StaticImage.GetStaticMap(
new StaticMapOptions
{
Location = location,
MapSize = new StaticMapSize { Width = 640, Height = 480 },
ZoomLevel = 14,
Markers = new List<StaticMapMarker>
{
new StaticMapMarker
{
Location = location,
Label = 'v',
Color = "orange"
}
}
});
- GeoCoding.GetAddressConversionUrl
- GeoCoding.GetLocationConversionUrl
- StaticImage.GetStaticMapUrl
- GeoCoding.GetAddressFromLatLong
- GeoCoding.GetLocationFromAddress
- StaticImage.GetStaticMap
Streetview implementation