Use an online service to find the address for a tapped point.
You might use a geocoder to find a customer's delivery address based on the location returned by their device's GPS.
Tap the map to see the nearest address displayed in a callout.
- Create a
LocatorTask
object using a URL to a geocoder service. - Set the
GeocodeParameters
for theLocatorTask
and specify the geocoder's attributes. - Get the matching results from the
GeocodeResult
usingLocatorTask.reverseGeocodeAsync
. - Show the results using a
PictureMarkerSymbol
and add the symbol to aGraphic
in theGraphicsOverlay
.
- GeocodeParameters
- LocatorTask
- ReverseGeocodeParameters
This sample uses the World Geocoding Service. For more information, see the Geocoding service help topic on the ArcGIS Developer website.
address, geocode, locate, reverse geocode, search