You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 28, 2026. It is now read-only.
Hi i have followed the Generic C# Geocoding API Build Status and readme.md instruction.
I have installed on visualstudio Geocoding.Google nuget that install
Geocoding.Goggle but also Goecoding.core
my problem at if I run this code on my masterpage.cs it goes on error
protected async Task Page_LoadAsync(object sender, EventArgs e)
{
/* IGeocoder geocoder = new GoogleGeocoder() { ApiKey = "myapikey" };
IEnumerable<Address> addresses = await geocoder.GeocodeAsync("1600 pennsylvania ave washington dc");
Console.WriteLine("Formatted: " + addresses.First().FormattedAddress);
// Formatted: 1600 Pennsylvania Ave SE, Washington, DC 20003, USA
Console.WriteLine("Coordinates: " + addresses.First().Coordinates.Latitude + ", " + addresses.First().Coordinates.Longitude);
// Coordinates: 38.8791981, -76.9818437*/
GoogleGeocoder geocoder = new GoogleGeocoder();
IEnumerable<GoogleAddress> addresses = await geocoder.GeocodeAsync("1600 pennsylvania ave washington dc");
var country = addresses.Where(a => !a.IsPartialMatch).Select(a => a[GoogleAddressType.Country]).First();
// Console.WriteLine("Country: " + country.LongName + ", " + country.ShortName); //Country: United States, US
}
CS0433: The type 'GoogleGeocoder' exists in both 'Geocoding.Google, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null' and 'Geocoding, Version=3.6.0.0, Culture=neutral, PublicKeyToken=7c714700b88674c7'
i have tryed to install only the nuget compent Geoding.core but it's the same...
my VS version is VS 2019 and 4.7.2 is framework
does someone know how to resolve this error?
best regards
tkx for your help
Hi i have followed the Generic C# Geocoding API Build Status and readme.md instruction.
I have installed on visualstudio Geocoding.Google nuget that install
Geocoding.Goggle but also Goecoding.core
my problem at if I run this code on my masterpage.cs it goes on error
protected async Task Page_LoadAsync(object sender, EventArgs e)
{
/* IGeocoder geocoder = new GoogleGeocoder() { ApiKey = "myapikey" };
CS0433: The type 'GoogleGeocoder' exists in both 'Geocoding.Google, Version=4.0.1.0, Culture=neutral, PublicKeyToken=null' and 'Geocoding, Version=3.6.0.0, Culture=neutral, PublicKeyToken=7c714700b88674c7'
i have tryed to install only the nuget compent Geoding.core but it's the same...
my VS version is VS 2019 and 4.7.2 is framework
does someone know how to resolve this error?
best regards
tkx for your help