Select to view content in your preferred language

Reverse Geocoding Not Behaving As Expected In 200.6/ArcGIS Pro 3.4

50
0
yesterday
Labels (1)
KyleGruber
Frequent Contributor

I have an app using .NET Runtime SDK 200.6 for WPF and a MobileMapPackage with a locator created using ArcGIS Pro 3.4.  When I do a reverse geocode on an address point, I'm no longer getting the individual location elements (StPreDir, StName, etc) despite using the following code.

var userLocation = MainMap.APSSMapView.ScreenToLocation(e.Position);
ReverseGeocodeParameters p = new ReverseGeocodeParameters();
p.ResultAttributeNames.Add("*");
p.OutputSpatialReference = MainMap.APSSMapView.SpatialReference;
var closest = await MainMap.BaseMap.LocatorTask?.ReverseGeocodeAsync(
    userLocation, p);

 

I only get the following attributes:

KyleGruber_0-1754408978021.png

 

Typically, this is something that ResultAttributeNames.Add("*") has fixed.  Anyone have any ideas?

Here is what the same locator result looks like in ArcGIS Pro, which is what I'm expecting:

KyleGruber_0-1754409260309.png

 

0 Kudos
0 Replies