UNPKG

@sroussey/parse-address

Version:

International street address parser for 220 jurisdictions (US, CA + 218 countries and territories), with SEC EDGAR country-code resolution

13 lines (12 loc) 678 B
import XRegExp from "xregexp"; import { AddressParserImpl } from "../../types/parser.js"; export declare class AddressParserUS implements AddressParserImpl { normalizeAddress(parts: any): Record<string, any> | null; parseStreet(street_address: string): Record<string, any> | null; parseAddress(address: string): Record<string, any> | null; parseInformalAddress(address: string): Record<string, any> | null; parsePoAddress(address: string): Record<string, any> | null; parseLocation(address: string): Record<string, any> | null; parseIntersection(address: string): XRegExp.ExecArray | null; findStreetTypeShortCode(streetType?: string): string; }