I've been trying to get the business name or at least type of business with the reverse geocoding/Placemark. I'm just getting numbers for some things. For example FeatureName is 230. Anyone knows how to translate it? If this is not the correct way, how can get the required information?
This is the code example -
private async Task<string> GetGeocodeReverseData(double latitude = 43.01297, double longitude = -88.38205)
{
IEnumerable<Placemark> placemarks = await Geocoding.Default.GetPlacemarksAsync(latitude, longitude);
Placemark placemark = placemarks?.FirstOrDefault();
if (placemark != null)
{
return
$"AdminArea: {placemark.AdminArea}\n" +
$"CountryCode: {placemark.CountryCode}\n" +
$"CountryName: {placemark.CountryName}\n" +
$"FeatureName: {placemark.FeatureName}\n" +
$"Locality: {placemark.Locality}\n" +
$"PostalCode: {placemark.PostalCode}\n" +
$"SubAdminArea: {placemark.SubAdminArea}\n" +
$"SubLocality: {placemark.SubLocality}\n" +
$"SubThoroughfare: {placemark.SubThoroughfare}\n" +
$"Thoroughfare: {placemark.Thoroughfare}\n";
}
return "";
}
I would like to get the business name and/or type of business. There is a gas station at this location.
This is the output I'm getting.
AdminArea: "Wisconsin"
CountryCode: "US"
CountryName: "United States"
FeatureName: "230"
Locality: "Wales"
Location: {Microsoft.Maui.Devices.Sensors.Location}
PostalCode: "53183"
SubAdminArea: "Waukesha County"
SubLocality: (null)
SubThoroughfare: "230"
Thoroughfare: "West Summit Avenue"