#[cfg(all(feature = "ad", feature = "constants"))]
pub mod consts {
#[allow(unused_imports)]
use crate::{
Alpha2, Alpha3, Continent, CurrencyCode, DistanceUnit, Region, SubRegion, WeekDay,
WorldRegion, GEC, IOC,
};
pub const ADDRESS_FORMAT: Option<&str> = None;
pub const ALPHA2: Alpha2 = Alpha2::AD;
pub const ALPHA3: Alpha3 = Alpha3::AND;
pub const CONTINENT: Continent = Continent::Europe;
pub const COUNTRY_CODE: usize = 376;
pub const CURRENCY_CODE: CurrencyCode = CurrencyCode::EUR;
pub const GEC: Option<GEC> = Some(GEC::AN);
pub const INTERNATIONAL_PREFIX: &str = "00";
pub const IOC: Option<IOC> = Some(IOC::AND);
pub const ISO_SHORT_NAME: &str = "Andorra";
pub const ISO_LONG_NAME: &str = "The Principality of Andorra";
pub const OFFICIAL_LANGUAGE_LIST: &[&str] = &["ca"];
pub const SPOKEN_LANGUAGE_LIST: &[&str] = &["ca"];
pub const NATIONAL_DESTINATION_CODE_LENGTH_LIST: &[usize] = &[2];
pub const NATIONAL_NUMBER_LENGTH_LIST: &[usize] = &[6, 7, 8, 9];
pub const NATIONAL_PREFIX: &str = "None";
pub const NATIONALITY: Option<&str> = Some("Andorran");
pub const NUMBER: &str = "020";
pub const POSTAL_CODE: bool = true;
pub const POSTAL_CODE_FORMAT: Option<&str> = Some("AD[1-7]0\\d");
pub const REGION: Option<Region> = Some(Region::Europe);
pub const START_DAY_OF_WEEK: WeekDay = WeekDay::Monday;
pub const SUBREGION: Option<SubRegion> = Some(SubRegion::SouthernEurope);
pub const UN_LOCODE: &str = "AD";
pub const UNOFFICIAL_NAME_LIST: &[&str] = &["Andorre", "Andorra", "アンドラ"];
pub const WORLD_REGION: WorldRegion = WorldRegion::EMEA;
pub const G7_MEMBER: bool = false;
pub const G20_MEMBER: bool = false;
pub const EU_MEMBER: bool = false;
pub const EEA_MEMBER: bool = false;
pub const DISTANCE_UNIT: DistanceUnit = DistanceUnit::Km;
pub const POPULATION: Option<u64> = Some(79824);
#[cfg(feature = "emojis")]
pub const EMOJI: &str = "🇦🇩";
#[cfg(feature = "translations")]
pub const TRANSLATIONS: &[(&str, &str)] = &[
("ab", "Andorra"),
("af", "Andorra"),
("ak", "Andorra"),
("am", "ጐን፦ሲ"),
("an", "Andorra"),
("ar", "أندورا"),
("as", "এণ\u{9cd}ডোৰ\u{9be}"),
("ay", "Andorra"),
("az", "Andorra"),
("ba", "Andorra"),
("be", "Андора"),
("bg", "Андора"),
("bi", "Andorra"),
("bn", "অ\u{9cd}য\u{9be}ন\u{9cd}ডোর\u{9be}"),
("bn_IN", "অ\u{9cd}য\u{9be}ন\u{9cd}ডোর\u{9be}"),
("br", "Andorra"),
("bs", "Andora"),
("ca", "Andorra"),
("ce", "Андорра"),
("ch", "Andorra"),
("cs", "Andorra"),
("cv", "Андорра"),
("cy", "Andorra"),
("da", "Andorra"),
("de", "Andorra"),
("dv", "އ\u{7ac}ނ\u{7b0}ޑ\u{7af}ރ\u{7a7}"),
("dz", "ཨ\u{f7a}ན་ཌ\u{f7c}་ར།"),
("ee", "Andorra"),
("el", "Ανδόρρα"),
("en", "Andorra"),
("eo", "Andoro"),
("es", "Andorra"),
("et", "Andorra"),
("eu", "Andorra"),
("fa", "آندورا"),
("ff", "Anndoora"),
("fi", "Andorra"),
("fo", "Andorra"),
("fr", "Andorre"),
("fy", "Andorra"),
("ga", "Andóra"),
("gl", "Andorra"),
("gn", "Andorra"),
("gu", "એન\u{acd}ડોરા"),
("gv", "Andorra"),
("ha", "Andorra"),
("he", "אנדורה"),
("hi", "अण\u{94d}डोरा"),
("hr", "Andora"),
("ht", "Andora"),
("hu", "Andorra"),
("hy", "Անդորա"),
("ia", "Andorra"),
("id", "Andorra"),
("io", "Andora"),
("is", "Andorra"),
("it", "Andorra"),
("iu", "Andorra"),
("ja", "アンドラ"),
("ka", "ანდორა"),
("ki", "Andorra"),
("kk", "Андорра"),
("kl", "Andorra"),
("km", "អង\u{17cb}ដ\u{17bc}រ\u{17c9}ា"),
("kn", "ಆಂಡೋರ\u{ccd}ರಾ"),
("ko", "안도라"),
("ku", "Andora"),
("kv", "Андорра"),
("kw", "Andorra"),
("ky", "Андорра"),
("lo", "ປະເທດອ\u{eb1}ງດອກ"),
("lt", "Andora"),
("lv", "Andora"),
("mi", "Andorra"),
("mk", "Андора"),
("ml", "അന\u{d4d}\u{200d}ഡോറ"),
("mn", "Андорра"),
("mr", "ऍ\u{902}डोरा"),
("ms", "Andorra"),
("mt", "Andorra"),
(
"my",
"အင\u{103a}ဒ\u{102d}\u{102f}ရာန\u{102d}\u{102f}င\u{103a}င\u{1036}",
),
("na", "Andorra"),
("nb", "Andorra"),
("ne", "एनडोर\u{94d}रा"),
("nl", "Andorra"),
("nn", "Andorra"),
("nv", "Andorra"),
("oc", "Andòrra"),
("or", "ଅଣ\u{b4d}ଟୋର\u{b3e}"),
("pa", "ਅਡ\u{a42}ਰਾ"),
("pi", "अ\u{902}डोरा"),
("pl", "Andora"),
("ps", "اندورا"),
("pt", "Andorra"),
("pt_BR", "Andorra"),
("ro", "Andora"),
("ru", "Андорра"),
("rw", "Andora"),
("sc", "Andorra"),
("sd", "انڊورا"),
("si", "ඇන\u{dca}ඩෝර\u{dcf}"),
("sk", "Andorra"),
("sl", "Andora"),
("so", "Andorra"),
("sq", "Andorrë"),
("sr", "Андора"),
("sv", "Andorra"),
("sw", "Andorra"),
("ta", "அன\u{bcd}டோர\u{bbe}"),
("te", "ఐండ\u{c4b}ర\u{c3e}"),
("tg", "Андорра"),
("th", "อ\u{e31}นดอร\u{e4c}รา"),
("ti", "አንዶራ"),
("tk", "Andorra"),
("tl", "Andora"),
("tr", "Andorra"),
("tt", "Андорра"),
("ug", "ئاندوررا"),
("uk", "Андорра"),
("ur", "انڈورا"),
("uz", "Andorra"),
("ve", "Andorra"),
("vi", "Ăn-đoa-râ"),
("wa", "Andore"),
("wo", "Andoor"),
("xh", "Andorra"),
("yo", "Àndórà"),
("zh_CN", "安道尔"),
("zh_HK", "安道爾"),
("zh_TW", "安道爾"),
("zu", "I-Andora"),
];
#[cfg(all(feature = "ad", feature = "geo", feature = "constants"))]
pub mod geo {
pub const LATITUDE: f64 = 42.506285;
pub const LONGITUDE: f64 = 1.521801;
pub const MAX_LATITUDE: f64 = 42.655791;
pub const MAX_LONGITUDE: f64 = 1.786639;
pub const MIN_LATITUDE: f64 = 42.4287488;
pub const MIN_LONGITUDE: f64 = 1.4087052;
pub const NORTHEAST_LATITUDE: f64 = 42.655791;
pub const NORTHEAST_LONGITUDE: f64 = 1.786639;
pub const SOUTHWEST_LATITUDE: f64 = 42.4287488;
pub const SOUTHWEST_LONGITUDE: f64 = 1.4087052;
}
}
#[cfg(all(feature = "ad", feature = "geo"))]
pub mod geo {
use crate::{CountryGeo, CountryGeoBound, CountryGeoBounds};
pub fn new() -> CountryGeo {
CountryGeo {
latitude: 42.506285,
longitude: 1.521801,
max_latitude: 42.655791,
max_longitude: 1.786639,
min_latitude: 42.4287488,
min_longitude: 1.4087052,
bounds: CountryGeoBounds {
northeast: CountryGeoBound {
latitude: 42.655791,
longitude: 1.786639,
},
southwest: CountryGeoBound {
latitude: 42.4287488,
longitude: 1.4087052,
},
},
}
}
}
#[cfg(all(feature = "ad", feature = "subdivisions"))]
pub mod subdivisions {
#[allow(unused_imports)]
use crate::{Alpha2, Subdivision, SubdivisionType};
use std::collections::HashMap;
#[cfg(feature = "geo")]
#[allow(unused_imports)]
use crate::SubdivisionGeo;
pub fn new() -> HashMap<&'static str, Subdivision> {
HashMap::from([
(
"02",
Subdivision {
name: "Canillo",
country_alpha2: Alpha2::AD,
code: "02",
#[cfg(feature = "geo")]
geo: Some(SubdivisionGeo {
latitude: Some(42.5666535),
longitude: Some(1.5994581),
max_latitude: Some(42.5679867),
min_latitude: Some(42.5650681),
max_longitude: Some(1.6037142),
min_longitude: Some(1.596212),
}),
comments: None,
subdivision_type: SubdivisionType::Parish,
#[cfg(feature = "translations")]
translations: HashMap::from([("en", "Canillo"), ("ja", "カニーリョ教区")]),
unofficial_name_list: ["Canillo"].to_vec(),
},
),
(
"03",
Subdivision {
name: "Encamp",
country_alpha2: Alpha2::AD,
code: "03",
#[cfg(feature = "geo")]
geo: Some(SubdivisionGeo {
latitude: Some(42.5362652),
longitude: Some(1.5830224),
max_latitude: Some(42.5395096),
min_latitude: Some(42.5292109),
max_longitude: Some(1.5901645),
min_longitude: Some(1.5711714),
}),
comments: None,
subdivision_type: SubdivisionType::Parish,
#[cfg(feature = "translations")]
translations: HashMap::from([("en", "Encamp"), ("ja", "アンカム教区")]),
unofficial_name_list: ["Encamp"].to_vec(),
},
),
(
"04",
Subdivision {
name: "La Massana",
country_alpha2: Alpha2::AD,
code: "04",
#[cfg(feature = "geo")]
geo: Some(SubdivisionGeo {
latitude: Some(42.545625),
longitude: Some(1.5147392),
max_latitude: Some(42.5501711),
min_latitude: Some(42.5366981),
max_longitude: Some(1.5204314),
min_longitude: Some(1.5084028),
}),
comments: None,
subdivision_type: SubdivisionType::Parish,
#[cfg(feature = "translations")]
translations: HashMap::from([("en", "La Massana"), ("ja", "ラ・マサナ教区")]),
unofficial_name_list: ["La Massana"].to_vec(),
},
),
(
"05",
Subdivision {
name: "Ordino",
country_alpha2: Alpha2::AD,
code: "05",
#[cfg(feature = "geo")]
geo: Some(SubdivisionGeo {
latitude: Some(42.5556547),
longitude: Some(1.5330732),
max_latitude: Some(42.5596833),
min_latitude: Some(42.552393),
max_longitude: Some(1.5374774),
min_longitude: Some(1.531403),
}),
comments: None,
subdivision_type: SubdivisionType::Parish,
#[cfg(feature = "translations")]
translations: HashMap::from([("en", "Ordino"), ("ja", "オルディノ教区")]),
unofficial_name_list: ["Ordino"].to_vec(),
},
),
(
"06",
Subdivision {
name: "Sant Julià de Lòria",
country_alpha2: Alpha2::AD,
code: "06",
#[cfg(feature = "geo")]
geo: Some(SubdivisionGeo {
latitude: Some(42.4657861),
longitude: Some(1.4921277),
max_latitude: Some(42.4727386),
min_latitude: Some(42.4613938),
max_longitude: Some(1.4963642),
min_longitude: Some(1.4893715),
}),
comments: None,
subdivision_type: SubdivisionType::Parish,
#[cfg(feature = "translations")]
translations: HashMap::from([
("en", "Sant Julià de Lòria"),
("ja", "サン・ジュリア・デ・ロリア教区"),
]),
unofficial_name_list: ["Saint Julia de Loria"].to_vec(),
},
),
(
"07",
Subdivision {
name: "Andorra la Vella",
country_alpha2: Alpha2::AD,
code: "07",
#[cfg(feature = "geo")]
geo: Some(SubdivisionGeo {
latitude: Some(42.50631740000001),
longitude: Some(1.5218355),
max_latitude: Some(42.513564),
min_latitude: Some(42.4966062),
max_longitude: Some(1.5353385),
min_longitude: Some(1.5053926),
}),
comments: None,
subdivision_type: SubdivisionType::Parish,
#[cfg(feature = "translations")]
translations: HashMap::from([
("en", "Andorra la Vella"),
("ja", "アンドラ・ラ・ベリャ教区"),
]),
unofficial_name_list: ["Andorra la Vieja", "Andorre-la-Vieille"].to_vec(),
},
),
(
"08",
Subdivision {
name: "Escaldes-Engordany",
country_alpha2: Alpha2::AD,
code: "08",
#[cfg(feature = "geo")]
geo: Some(SubdivisionGeo {
latitude: Some(42.5100804),
longitude: Some(1.5387862),
max_latitude: Some(42.5168669),
min_latitude: Some(42.5067774),
max_longitude: Some(1.5532685),
min_longitude: Some(1.5285531),
}),
comments: None,
subdivision_type: SubdivisionType::Parish,
#[cfg(feature = "translations")]
translations: HashMap::from([
("en", "Escaldes-Engordany"),
("ja", "エスカルデス=エンゴルダニ教区"),
]),
unofficial_name_list: ["Les Escaldes"].to_vec(),
},
),
])
}
}
#[allow(unused_imports)]
use crate::{
Alpha2, Alpha3, Continent, Country, CurrencyCode, DistanceUnit, Region, SubRegion, VatRates,
WeekDay, WorldRegion, GEC, IOC,
};
#[allow(unused_imports)]
use std::collections::HashMap;
#[cfg(feature = "ad")]
pub fn new() -> Country {
Country {
alpha2: Alpha2::AD,
alpha3: Alpha3::AND,
address_format: None,
continent: Continent::Europe,
country_code: 376,
currency_code: CurrencyCode::EUR,
maybe_gec: Some(GEC::AN),
#[cfg(feature = "geo")]
geo: geo::new(),
international_prefix: "00",
maybe_ioc: Some(IOC::AND),
iso_long_name: "The Principality of Andorra",
iso_short_name: "Andorra",
official_language_list: ["ca"].to_vec(),
spoken_language_list: ["ca"].to_vec(),
national_destination_code_length_list: [2].to_vec(),
national_number_length_list: [6, 7, 8, 9].to_vec(),
national_prefix: "None",
maybe_nationality: Some("Andorran"),
number: "020",
postal_code: true,
postal_code_format: Some("AD[1-7]0\\d"),
maybe_region: Some(Region::Europe),
start_of_week: WeekDay::Monday,
maybe_subregion: Some(SubRegion::SouthernEurope),
un_locode: "AD",
unofficial_name_list: ["Andorre", "Andorra", "アンドラ"].to_vec(),
world_region: WorldRegion::EMEA,
#[cfg(feature = "emojis")]
emoji: "🇦🇩",
#[cfg(feature = "translations")]
translations: HashMap::from([
("ab", "Andorra"),
("af", "Andorra"),
("ak", "Andorra"),
("am", "ጐን፦ሲ"),
("an", "Andorra"),
("ar", "أندورا"),
("as", "এণ\u{9cd}ডোৰ\u{9be}"),
("ay", "Andorra"),
("az", "Andorra"),
("ba", "Andorra"),
("be", "Андора"),
("bg", "Андора"),
("bi", "Andorra"),
("bn", "অ\u{9cd}য\u{9be}ন\u{9cd}ডোর\u{9be}"),
("bn_IN", "অ\u{9cd}য\u{9be}ন\u{9cd}ডোর\u{9be}"),
("br", "Andorra"),
("bs", "Andora"),
("ca", "Andorra"),
("ce", "Андорра"),
("ch", "Andorra"),
("cs", "Andorra"),
("cv", "Андорра"),
("cy", "Andorra"),
("da", "Andorra"),
("de", "Andorra"),
("dv", "އ\u{7ac}ނ\u{7b0}ޑ\u{7af}ރ\u{7a7}"),
("dz", "ཨ\u{f7a}ན་ཌ\u{f7c}་ར།"),
("ee", "Andorra"),
("el", "Ανδόρρα"),
("en", "Andorra"),
("eo", "Andoro"),
("es", "Andorra"),
("et", "Andorra"),
("eu", "Andorra"),
("fa", "آندورا"),
("ff", "Anndoora"),
("fi", "Andorra"),
("fo", "Andorra"),
("fr", "Andorre"),
("fy", "Andorra"),
("ga", "Andóra"),
("gl", "Andorra"),
("gn", "Andorra"),
("gu", "એન\u{acd}ડોરા"),
("gv", "Andorra"),
("ha", "Andorra"),
("he", "אנדורה"),
("hi", "अण\u{94d}डोरा"),
("hr", "Andora"),
("ht", "Andora"),
("hu", "Andorra"),
("hy", "Անդորա"),
("ia", "Andorra"),
("id", "Andorra"),
("io", "Andora"),
("is", "Andorra"),
("it", "Andorra"),
("iu", "Andorra"),
("ja", "アンドラ"),
("ka", "ანდორა"),
("ki", "Andorra"),
("kk", "Андорра"),
("kl", "Andorra"),
("km", "អង\u{17cb}ដ\u{17bc}រ\u{17c9}ា"),
("kn", "ಆಂಡೋರ\u{ccd}ರಾ"),
("ko", "안도라"),
("ku", "Andora"),
("kv", "Андорра"),
("kw", "Andorra"),
("ky", "Андорра"),
("lo", "ປະເທດອ\u{eb1}ງດອກ"),
("lt", "Andora"),
("lv", "Andora"),
("mi", "Andorra"),
("mk", "Андора"),
("ml", "അന\u{d4d}\u{200d}ഡോറ"),
("mn", "Андорра"),
("mr", "ऍ\u{902}डोरा"),
("ms", "Andorra"),
("mt", "Andorra"),
(
"my",
"အင\u{103a}ဒ\u{102d}\u{102f}ရာန\u{102d}\u{102f}င\u{103a}င\u{1036}",
),
("na", "Andorra"),
("nb", "Andorra"),
("ne", "एनडोर\u{94d}रा"),
("nl", "Andorra"),
("nn", "Andorra"),
("nv", "Andorra"),
("oc", "Andòrra"),
("or", "ଅଣ\u{b4d}ଟୋର\u{b3e}"),
("pa", "ਅਡ\u{a42}ਰਾ"),
("pi", "अ\u{902}डोरा"),
("pl", "Andora"),
("ps", "اندورا"),
("pt", "Andorra"),
("pt_BR", "Andorra"),
("ro", "Andora"),
("ru", "Андорра"),
("rw", "Andora"),
("sc", "Andorra"),
("sd", "انڊورا"),
("si", "ඇන\u{dca}ඩෝර\u{dcf}"),
("sk", "Andorra"),
("sl", "Andora"),
("so", "Andorra"),
("sq", "Andorrë"),
("sr", "Андора"),
("sv", "Andorra"),
("sw", "Andorra"),
("ta", "அன\u{bcd}டோர\u{bbe}"),
("te", "ఐండ\u{c4b}ర\u{c3e}"),
("tg", "Андорра"),
("th", "อ\u{e31}นดอร\u{e4c}รา"),
("ti", "አንዶራ"),
("tk", "Andorra"),
("tl", "Andora"),
("tr", "Andorra"),
("tt", "Андорра"),
("ug", "ئاندوررا"),
("uk", "Андорра"),
("ur", "انڈورا"),
("uz", "Andorra"),
("ve", "Andorra"),
("vi", "Ăn-đoa-râ"),
("wa", "Andore"),
("wo", "Andoor"),
("xh", "Andorra"),
("yo", "Àndórà"),
("zh_CN", "安道尔"),
("zh_HK", "安道爾"),
("zh_TW", "安道爾"),
("zu", "I-Andora"),
]),
#[cfg(feature = "subdivisions")]
subdivisions: subdivisions::new(),
g7_member: false,
g20_member: false,
eu_member: false,
eea_member: false,
maybe_vat_rates: None,
distance_unit: DistanceUnit::Km,
maybe_population: Some(79824),
}
}