All Downloads are FREE. Search and download functionalities are using the official Maven repository.

sv.address.conf Maven / Gradle / Ivy

The newest version!
include "name.conf"

address {
  postal-code-builder = {options = [{parts = [{type = "string-part", value = "#####"}]}]}
  city-prefixes = [Söder, Norr, Väst, Öster, Aling, Ar, Av, Bo, Br, Bå, Ek, En, Esk, Fal, Gäv, Göte, Ha, Helsing, Karl, Krist, Kram, Kung, Kö, Lyck, Ny]
  city-suffixes = [stad, land, sås, ås, holm, tuna, sta, berg, löv, borg, mora, hamn, fors, köping, by, hult, torp, fred, vik]
  city-names = [Bánovce nad Bebravou, Banská Bystrica, Banská Štiavnica, Bardejov, Bratislava I, Bratislava II, Bratislava III, Bratislava IV, Bratislava V, Brezno, Bytča, Čadca, Detva, Dolný Kubín, Dunajská Streda, Galanta, Gelnica, Hlohovec, Humenné, Ilava, Kežmarok, Komárno, Košice I, Košice II, Košice III, Košice IV, Košice-okolie, Krupina, Kysucké Nové Mesto, Levice, Levoča, Liptovský Mikuláš, Lučenec, Malacky, Martin, Medzilaborce, Michalovce, Myjava, Námestovo, Nitra, Nové Mesto n.Váhom, Nové Zámky, Partizánske, Pezinok, Piešťany, Poltár, Poprad, Považská Bystrica, Prešov, Prievidza, Púchov, Revúca, Rimavská Sobota, Rožňava, Ružomberok, Sabinov, Šaľa, Senec, Senica, Skalica, Snina, Sobrance, Spišská Nová Ves, Stará Ľubovňa, Stropkov, Svidník, Topoľčany, Trebišov, Trenčín, Trnava, Turčianske Teplice, Tvrdošín, Veľký Krtíš, Vranov nad Topľou, Žarnovica, Žiar nad Hronom, Žilina, Zlaté Moravce, Zvolen]
  city-builder = {
    options = [
      {parts = [{type = "seq-string-part", value = ${address.city-prefixes}}, {type = "seq-string-part", value = ${address.city-suffixes}}]}
    ]
  }
  states = [
    {type = "province", abbr = "Blekinge", name = "Blekinge", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Dalarna", name = "Dalarna", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Gotland", name = "Gotland", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Gävleborg", name = "Gävleborg", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Göteborg", name = "Göteborg", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Halland", name = "Halland", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Jämtland", name = "Jämtland", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Jönköping", name = "Jönköping", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Kalmar", name = "Kalmar", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Kronoberg", name = "Kronoberg", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Norrbotten", name = "Norrbotten", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Skaraborg", name = "Skaraborg", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Skåne", name = "Skåne", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Stockholm", name = "Stockholm", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Södermanland", name = "Södermanland", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Uppsala", name = "Uppsala", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Värmland", name = "Värmland", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Västerbotten", name = "Västerbotten", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Västernorrland", name = "Västernorrland", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Västmanland", name = "Västmanland", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Älvsborg", name = "Älvsborg", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Örebro", name = "Örebro", postal-code-builder = ${address.postal-code-builder}},
    {type = "province", abbr = "Östergötland", name = "Östergötland", postal-code-builder = ${address.postal-code-builder}}
  ]

  building-numbers = ["###", "##", "#"]
  secondary-addresses = ["Lgh. ###", "Hus ###"]
  street-prefixes = [Västra, Östra, Norra, Södra, Övre, Undre]
  street-roots = [Björk, Järnvägs, Ring, Skol, Skogs, Ny, Gran, Idrotts, Stor, Kyrk, Industri, Park, Strand, Skol, Trädgård, Ängs, Kyrko, Villa, Ek, Kvarn, Stations, Back, Furu, Gen, Fabriks, Åker, Bäck, Asp]
  street-suffixes = [vägen, gatan, gränden, gärdet, allén]
  common-street-suffixes = ["s Väg", "s Gata"]
  street-name-builder = {
    options = [
      {parts = [{type = "seq-string-part", value = ${address.street-roots}}, {type = "seq-string-part", value = ${address.street-suffixes}}]},
      {parts = [{type = "seq-string-part", value = ${address.street-prefixes}, suffix = " "}, {type = "seq-string-part", value = ${address.street-roots}}, {type = "seq-string-part", value = ${address.street-suffixes}}]},
      {parts = [{type = "seq-string-part", value = ${name.first.names}}, {type = "seq-string-part", value = ${address.common-street-suffixes}}]},
      {parts = [{type = "seq-string-part", value = ${name.last.names}}, {type = "seq-string-part", value = ${address.common-street-suffixes}}]}
    ]
  }

  street-address-builder = {
    options = [
      {parts = [{type = "string-builder-part", value = ${address.street-name-builder}, suffix = " "}, {type = "seq-string-part", value = ${address.building-numbers}}]}
    ]
  }
  full-address-builder = {
    options = [
      {parts = [{type = "string-builder-part", value = ${address.street-address-builder}, suffix = ", "}, {type = "string-builder-part", value = ${address.postal-code-builder}, suffix = " "}, {type = "string-builder-part", value = ${address.city-builder}}]}
    ]
  }
  default-countries = [{code = "SV", name = "Sverige"}]
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy