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 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); }
private List <StreetType> StreetTypes() { return(StreetType.From(streetTypes.Select(t => t.Full).ToArray())); }