private static NormalStreetTypeFinder GetFinder(AddressParseContainer container)
        {
            var streetTypes = StreetType.From(
                new string[]
            {
                "ALLEY",
                "AVENUE",
                "BOULEVARD",
                "CIRCLE",
                "CONNECTOR",
                "COURT",
                "DRIVE",
                "HIGHWAY",
                "KEY",
                "LANE",
                "LOOP",
                "MALL",
                "PARKWAY",
                "PLACE",
                "ROAD",
                "STREET",
                "SQUARE",
                "TERRACE",
                "WAY"
            });

            var splitter = new AddressSplitter(container);
            var finder   = new NormalStreetTypeFinder(container, streetTypes);

            splitter.SplitAndClean();

            return(finder);
        }
        private static AddressNumberFractionFinder GetFinder(AddressParseContainer container)
        {
            var splitter = new AddressSplitter(container);
            var finder   = new AddressNumberFractionFinder(container);

            splitter.SplitAndClean();

            return(finder);
        }
        private static PostalCodeFinder GetFinder(AddressParseContainer container)
        {
            var splitter = new AddressSplitter(container);
            var finder   = new PostalCodeFinder(container);

            splitter.SplitAndClean();

            return(finder);
        }
Пример #4
0
        private static NonPhysicalStreetTypeFinder GetFinder(AddressParseContainer container)
        {
            var splitter = new AddressSplitter(container);
            var finder   = new NonPhysicalStreetTypeFinder(container);

            splitter.SplitAndClean();

            return(finder);
        }
        private static DirectionalPrefixFinder GetFinder(AddressParseContainer container)
        {
            var splitter = new AddressSplitter(container);
            var finder   = new DirectionalPrefixFinder(container);

            splitter.SplitAndClean();

            return(finder);
        }
        private static StreetTypeStreetNameFinder GetFinder(AddressParseContainer container)
        {
            var streetTypes = StreetType.From(
                new string[]
            {
                "ALLEY",
                "AVENUE",
                "CIRCLE",
                "WAY"
            });

            var splitter = new AddressSplitter(container);
            var finder   = new StreetTypeStreetNameFinder(container, streetTypes);

            splitter.SplitAndClean();

            return(finder);
        }