-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue:446 Add location address data for Serbia. (#533)
- Loading branch information
1 parent
69524c9
commit 87ba580
Showing
7 changed files
with
645 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,8 @@ enum class AddressCountry | |
Romania, | ||
Latvia, | ||
Nepal, | ||
Belgium | ||
Belgium, | ||
Serbia | ||
}; | ||
|
||
class Location | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include "../CountryAddresses.h" | ||
#include "SerbiaCities.h" | ||
#include "SerbiaStates.h" | ||
#include "SerbiaStreetNames.h" | ||
|
||
namespace faker | ||
{ | ||
const std::string serbiaZipCodeFormat{"#####"}; | ||
|
||
const std::vector<std::string> serbiaAddressFormats{"{buildingNumber} {street}"}; | ||
|
||
const std::vector<std::string> serbiaSecondaryAddressFormats{"Sprat #", "Stan ##"}; | ||
|
||
const std::vector<std::string> serbiaBuildingNumberFormats{ | ||
"#", | ||
"##", | ||
"###", | ||
}; | ||
|
||
const std::vector<std::string> serbiaStreetFormats{"{streetName}"}; | ||
|
||
const std::vector<std::string> serbiaCityFormats{"{cityName}"}; | ||
|
||
const CountryAddresses serbiaAddresses{serbiaZipCodeFormat, | ||
serbiaAddressFormats, | ||
serbiaSecondaryAddressFormats, | ||
serbiaStreetFormats, | ||
{}, | ||
serbiaStreetNames, | ||
{}, | ||
serbiaBuildingNumberFormats, | ||
serbiaCityFormats, | ||
{}, | ||
serbiaCities, | ||
{}, | ||
serbiaStates, | ||
{}}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> serbiaCities = { | ||
"Beograd", | ||
"Bor", | ||
"Jagodina", | ||
"Kikinda", | ||
"Kraljevo", | ||
"Kruševac", | ||
"Leskovac", | ||
"Niš", | ||
"Novi Pazar", | ||
"Novi Sad", | ||
"Pančevo", | ||
"Paraćin", | ||
"Pirot", | ||
"Požarevac", | ||
"Prokuplje", | ||
"Smederevo", | ||
"Sombor", | ||
"Sopot", | ||
"Sremska Mitrovica", | ||
"Subotica", | ||
"Užice", | ||
"Vranje", | ||
"Vršac", | ||
"Zaječar", | ||
"Zrenjanjin", | ||
"Čačak", | ||
"Šabac", | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> serbiaStates = { | ||
"Borski okrug", | ||
"Braničevski okrug", | ||
"Grad Beograd", | ||
"Zaječarski okrug", | ||
"Zapadnobački okrug", | ||
"Zlatiborski okrug", | ||
"Jablanički okrug", | ||
"Južnobanatski okrug", | ||
"Južnobački okrug", | ||
"Kolubarski okrug", | ||
"Kosovski okrug", | ||
"Kosovskomitrovački okrug", | ||
"Kosovskopomoravski okrug", | ||
"Mačvanski okrug", | ||
"Moravički okrug", | ||
"Nišavski okrug", | ||
"Pećki okrug", | ||
"Pirotski okrug", | ||
"Podunavski okrug", | ||
"Pomoravski okrug", | ||
"Prizrenski okrug", | ||
"Pčinjski okrug", | ||
"Rasinski okrug", | ||
"Raški okrug", | ||
"Severnobanatski okrug", | ||
"Severnobački okrug", | ||
"Srednjobanatski okrug", | ||
"Sremski okrug", | ||
"Toplički okrug", | ||
"Šumadijski okrug", | ||
}; | ||
} |
Oops, something went wrong.