LocaleEndpoint

The responses from both API calls are cached in localStorage.

Instance Methods

Method Name Description
countries(): Promise<{ countries: object, html: string }> Get list of ISO3166 countries.
subdivisions(country: string): Promise<{ subdivisions: object, html: string }> Get list of ISO3166-2 subdivisions (i.e. province, state, etc...).