Пример #1
0
        private void ExtractAddress()
        {
            var elements = _searchCommand.GetElementsByText(Tag, Distance)
                           .ToArray()
                           .Wait();

            if (elements == null || !elements.Any() || elements[0] == null)
            {
                return;
            }
            var coordinate = _searchCommand.SearchCenter;

            Array.Sort(elements, new ElementDistanceComparer(coordinate));
            _subject.OnNext(AddressExtractor.Extract(elements[0].Tags));
        }