private void BatchGeocodeButton_Click(object sender, RoutedEventArgs e) { if (batchaddresses.Count > 0) { _locatorTask.AddressesToLocationsAsync(batchaddresses.ToList(), MyMap.SpatialReference); } }