Geocode

Perform geocoding and reverse geocoding using a local geocoding service. The sample starts a LocalGeocodeService and uses its URL to create a Locator. Then it calls a method on the Locator to perform geocoding and reverse geocoding. To use the sample, enter an address (or use the one that is already entered) and click the Find button. The top results are shown, and the top result appears on the map as a red pushpin. Double-click near a street on the map to find an address with reverse geocoding. A pushpin graphic appears. Hovering over the pushpin displays the address in a pop-up dialog. The provided sample data only supports geocoding within the San Francisco area.