コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 private List <StreetType> StreetTypes()
 {
     return(StreetType.From(streetTypes.Select(t => t.Full).ToArray()));
 }