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
Copy file name to clipboardExpand all lines: Shared/Samples/Find address with reverse geocode/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,13 +15,13 @@ Tap the map to see the nearest address displayed in a callout.
15
15
## How it works
16
16
17
17
1. Create a `LocatorTask` object using a URL to a geocoder service.
18
-
2.Set the `GeocodeParameters` for the `LocatorTask` and specify the geocoder's attributes.
19
-
3.Get the matching results from the `GeocodeResult` using `LocatorTask.reverseGeocodeAsync`.
18
+
2.Create an instance of `ReverseGeocodeParameters` and set `ReverseGeocodeParameters.maxResults` to 1.
19
+
3.Pass the `ReverseGeocodeParameters` into `LocatorTask.reverseGeocode(forLocation:parameters:)` and get the matching results from the `GeocodeResult`.
20
20
4. Show the results using a `PictureMarkerSymbol` and add the symbol to a `Graphic` in the `GraphicsOverlay`.
0 commit comments