From 12e6a85736aa948a60c37922500cb84fb340ac5f Mon Sep 17 00:00:00 2001 From: Gagandeep Singh Date: Thu, 20 Apr 2017 11:29:26 -0700 Subject: [PATCH] Update README.md --- arcgis-runtime-samples-macos/Search/Find address/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arcgis-runtime-samples-macos/Search/Find address/README.md b/arcgis-runtime-samples-macos/Search/Find address/README.md index a166662..99f5061 100644 --- a/arcgis-runtime-samples-macos/Search/Find address/README.md +++ b/arcgis-runtime-samples-macos/Search/Find address/README.md @@ -1,9 +1,9 @@ -#Find address +# Find address This sample demonstrates how to geocode an address and show it on the map view -##How to use the sample +## How to use the sample You can either type in an address (or Point of Interest) or choose an address from the list to show it on the map view. You can get the list by click on the arrow next to the search icon in the search field. The address location is marked with a pin. You can click on the pin to show the address in a callout. @@ -11,7 +11,7 @@ You can either type in an address (or Point of Interest) or choose an address fr ![](image1.png) -##How it works +## How it works The sample uses the `geocode(withSearchText:parameters:completion:)` method on the `AGSLocatorTask` to geocode an address. It returns an array of `AGSGeocodeResult` objects in case of success. The first result is displayed on the map view using `AGSGraphicsOverlay`. The attributes returned in the `AGSGeocodeResult` object are used as `title` and `detail` fields for the callout. To show the callout the sample uses the `show(for:overlay:tapLocation:animated:)` method on `AGSCallout`.