Hierarchy

  • StiIsoElementHelper

Index

Accessors

Static brazilProvinces

Static canadaProvinces

Static countries

Static usStates

Methods

Static getCountryFromAlpha2

  • getCountryFromAlpha2(alpha2: string, mapId?: string): StiIsoCountry
  • Obtain ISO3166-1 Country based on its alpha2 code.

    Parameters

    • alpha2: string
    • Default value mapId: string = null

    Returns StiIsoCountry

Static getCountryFromAlpha3

  • getCountryFromAlpha3(alpha3: string, mapId?: string): StiIsoCountry
  • Gets ISO3166-1 Country based on its alpha3 code.

    Parameters

    • alpha3: string
    • Default value mapId: string = null

    Returns StiIsoCountry

Static getCountryFromName

  • getCountryFromName(name: string, mapId?: string): StiIsoCountry
  • Gets ISO3166-1 Country based on its alpha3 code. Returns null, if country is not recognized.

    Parameters

    • name: string
    • Default value mapId: string = null

    Returns StiIsoCountry

Static getIsoAlpha2FromName

  • getIsoAlpha2FromName(name: string, mapId?: string): string
  • Gets ISO3166-1 Alpha2 code based on country name. Returns null, if country is not recognized.

    Parameters

    • name: string
    • Default value mapId: string = null

    Returns string

Static getIsoAlpha3FromName

  • getIsoAlpha3FromName(name: string, mapId?: string): string
  • Gets ISO3166-1 Alpha3 code based on country name. Returns null, if country is not recognized.

    Parameters

    • name: string
    • Default value mapId: string = null

    Returns string

Generated using TypeDoc