|
RecogniContact/COM - International Address Parser - Class IParsedContact |
|
Class IParsedContactThe method IContactParser.Parse() returns an object of class IParsedContact.IParsedContact is the class containing the parsing result. Class Methodsstring GetValue(ContactFieldType contactfield);GetValue() returns the contact data fields identified and parsed by RecogniContact. string GetMetaData(MetaDataType metadata); GetMetaData() returns meta-information from the parsing process. ContactFieldTypeGetValue() can be called with the following values:ContactFieldType_Prefix Returns a prefix title (Dr., Prof.) or a salutation (Mr., Mrs.) ContactFieldType_FirstName Returns a person's first name, or - if no complete first name was specified - the initial letter of the first name. ContactFieldType_MiddleName Returns a person's middle name, or - if no complete middle name was specified - the initial letter of the middle name. ContactFieldType_LastName Returns a person's last name. ContactFieldType_Suffix Returns a postfix title (MBA) or a name suffix (jr.) ContactFieldType_Company Returns a company name ContactFieldType_Company2 Returns the second line of a company name ContactFieldType_Position Returns a person's job title or professional position ContactFieldType_StreetAddress1 Returns the street address of a postal address. Only works when a complete postal address (include place name and zip/postal code) was specified. ContactFieldType_StreetAddress2 Returns the second line of the street address ContactFieldType_PostboxAddress Returns a post office box address. ContactFieldType_PostboxPostCode Returns the post code belonging to the a post office box address. In several many countries, the post codes of street addresses and post pox addresses are different. ContactFieldType_PostCode Returns the post code of the street address. ContactFieldType_PlaceName Returns the place name in the address. ContactFieldType_Province Returns the region the place name in the address is located for these countries: USA - US state Germany - Bundesland Austria - Bundesland Switzerland - Canton Italy - Province ContactFieldType_Country Returns the country of the parsed data. ContactFieldType_Phone1 Returns the fixed line phone number ContactFieldType_Phone2 Returns a second fixed line phone number ContactFieldType_Mobile Returns a mobile phone number ContactFieldType_Fax Returns a fax number ContactFieldType_Email Returns an email address ContactFieldType_Url Returns a website address ContactFieldType_Gender Returns a person's gender. RecogniContact looks up this information in a list of 20.000 known first names M - Male F - Male MF - Male or female (undecidable for names like Alex, Sasha, etc.) ? - unknown, if an unknown first name was located empty - if no first name was found ContactFieldType_CountryIsoCode Returns the 2 letter ISO country code as on http://www.iso.org/iso/english_country_names_and_code_elements. MetaDataTypeGetMetaData() can be called with the following values:MetaDataType_UnrecognizedInfo Returns the strings that RecogniContact could not identify as contact information. strings are separated by '|' character.. MetaDataType_SourceText Returns the source text.. DemoFor a demo see the following source code samples: |