Skip to content

Subdivisions #30

Open
Open
@puschie286

Description

Hi,

what do you think about adding subdivision (ISO 3166-2) information ?

We need that for some project so im currently implementing it (europe + usa for now). Its basically an ISubdivisionInfo with informations from wikipedia and iso obp and an subdivision list on country info.

If you are interested, i would prepare an PR with structure and some reference definitions.

here is our structure so far:

public interface ISubdivisionInfo
{
	/// <summary>
	/// CommonName
	/// </summary>
	string CommonName { get; }
	/// <summary>
	/// NativeName
	/// </summary>
	string OfficialName { get; }
	/// <summary>
	/// ISO-3166-2 code
	/// </summary>
	string TextCode { get; }
	/// <summary>
	/// Subdivision code
	/// </summary>
	SubdivisionCode Code { get; }
	/// <summary>
	/// Subdivison category
	/// </summary>
	SubdivisionCategory Category { get; }
}

CommonName is the reference name (from wikipedia, mostly english)
OfficialName is the iso name (mostly local)
SubdivisionCode is an enum with all subdivison codes (without the - ) from here

was thinking about adding administration language but it seems that you dont have this on the CountryInfo and the LanguageCode enum is part of the translation project

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions