Sourcier Geo Utils icon

Sourcier Geo Utils

Address utilities: validate, normalize, format, convert, compare addresses

Address Convert → Infer Country

AI-generated

Summary

Infer the ISO 3166-1 alpha-2 country code from address data provided via multiple input modes, including manual entry of fields, parsing a free-form address string, or extracting address fields from Bullhorn entities.

Inputs

  • Authentication (required) — Select authentication method: User Credentials (Email & Password) or Enterprise Credentials (API Key).
  • Input Mode (required) — Choose how address data is supplied: Manual Input (city, state, zip), Bullhorn Entity (predefined Bullhorn address fields), or Parse Address String (free-form address).
  • City — City name, used in Manual Input mode.
  • State — State, province, or region, used in Manual Input mode.
  • ZIP / Postal Code — ZIP or postal code, used in Manual Input mode.
  • Address String (required) — Free-form address string to parse into address fields, used in Parse Address String mode.
  • Entity Type — Bullhorn entity type to extract address from, required if Input Mode is Bullhorn Entity.
  • Address Fields — Which address fields to process on the Bullhorn entity, applicable when Input Mode is Bullhorn Entity.
  • Error Handling (required) — How to handle processing errors: Fail Fast (stop on first error), Continue (skip errors), or Collect Errors (include errors with output).
  • Country Code — Custom ISO 3166-1 alpha-2 country code to use if default country is set to OTHER.

Output shape

a single object containing the inferred country code, possibly alongside errors depending on error handling mode

If errors occur during inference, behavior depends on the selected Error Handling mode. The output always includes the inferred ISO country code when successful.

Links

Discussion