Skip to content
This repository has been archived by the owner on Feb 3, 2023. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
singhgag authored Apr 20, 2017
1 parent b258a3e commit 12e6a85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions arcgis-runtime-samples-macos/Search/Find address/README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
#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.


![](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`.

Expand Down

0 comments on commit 12e6a85

Please sign in to comment.