ArcGIS Runtime SDK for iOS

Find Address

Description

This sample demonstrates how to geocode an address and show it on the map view. You can either type in an address or choose an address from the dropdown list. Once geocoded the address location is marked on the map with a pin. Tap on the pin to show the address details.

Find Address

How it works

The sample uses the geocodeWithSearchText:parameters:completion: method on the AGSLocatorTask to geocode an address. It returns an array of AGSGeocodeResult objects and the first result in the array is displayed on the map view using AGSGraphicsOverlay. The AGSGeocodeResult attribute values are used as title and detail fields in the callout. To show the callout the sample uses the showCalloutForGraphic:overlay:tapLocation:animated: method on AGSMapView.


In this topic
  1. Description