diff --git a/include/faker-cxx/types/AddressCountry.h b/include/faker-cxx/types/AddressCountry.h index fe04b57f6..83e102d4b 100644 --- a/include/faker-cxx/types/AddressCountry.h +++ b/include/faker-cxx/types/AddressCountry.h @@ -7,49 +7,59 @@ namespace faker { // TODO: remove when AddressCountry enum values will be same as Country values - enum class AddressCountry - { - Usa, - Poland, - France, - Russia, - Ukraine, - Italy, - Germany, - Czech, - Australia, - India, - Denmark, - Spain, - Brazil, - Finland, - Estonia - }; +enum class AddressCountry +{ + Usa, + Poland, + France, + Russia, + Ukraine, + Italy, + Germany, + Czech, + Australia, + India, + Denmark, + Spain, + Brazil, + Finland, + Estonia, + Romania, +}; - const std::vector addressCountries{ - AddressCountry::Usa, AddressCountry::Poland, AddressCountry::France, - AddressCountry::Russia, AddressCountry::Ukraine, AddressCountry::Italy, - AddressCountry::Germany, AddressCountry::Czech, AddressCountry::India, - AddressCountry::Denmark, AddressCountry::Australia, AddressCountry::Spain, - AddressCountry::Brazil, AddressCountry::Finland, - }; +const std::vector addressCountries{ + AddressCountry::Usa, AddressCountry::Poland, AddressCountry::France, AddressCountry::Russia, + AddressCountry::Ukraine, AddressCountry::Italy, AddressCountry::Germany, AddressCountry::Czech, + AddressCountry::India, AddressCountry::Denmark, AddressCountry::Australia, AddressCountry::Spain, + AddressCountry::Brazil, AddressCountry::Finland, AddressCountry::Estonia, AddressCountry::Romania, +}; - inline std::string toString(AddressCountry country) - { - std::map countryToStringMapping{ - {AddressCountry::Usa, "Usa"}, {AddressCountry::Poland, "Poland"}, {AddressCountry::France, "France"}, - {AddressCountry::Russia, "Russia"}, {AddressCountry::Ukraine, "Ukraine"}, {AddressCountry::Italy, "Italy"}, - {AddressCountry::Germany, "Germany"}, {AddressCountry::Czech, "Czech"}, {AddressCountry::Australia, "Australia"}, - {AddressCountry::India, "India"}, {AddressCountry::Denmark, "Denmark"}, - {AddressCountry::Spain, "Spain"}, {AddressCountry::Brazil, "Brazil"}, - {AddressCountry::Finland, "Finland"}, - }; +inline std::string toString(AddressCountry country) +{ + std::map countryToStringMapping{ + {AddressCountry::Usa, "Usa"}, + {AddressCountry::Poland, "Poland"}, + {AddressCountry::France, "France"}, + {AddressCountry::Russia, "Russia"}, + {AddressCountry::Ukraine, "Ukraine"}, + {AddressCountry::Italy, "Italy"}, + {AddressCountry::Germany, "Germany"}, + {AddressCountry::Czech, "Czech"}, + {AddressCountry::Australia, "Australia"}, + {AddressCountry::India, "India"}, + {AddressCountry::Denmark, "Denmark"}, + {AddressCountry::Spain, "Spain"}, + {AddressCountry::Brazil, "Brazil"}, + {AddressCountry::Finland, "Finland"}, + {AddressCountry::Estonia, "Estonia"}, + {AddressCountry::Romania, "Romania"}, + }; - return countryToStringMapping.at(country); - } + return countryToStringMapping.at(country); +} - inline std::ostream& operator<<(std::ostream& os, AddressCountry country) - { - return os << toString(country); - } +inline std::ostream& operator<<(std::ostream& os, AddressCountry country) +{ + return os << toString(country); +} } diff --git a/src/modules/location/Location.cpp b/src/modules/location/Location.cpp index 8ac718bf7..b6b60bb54 100644 --- a/src/modules/location/Location.cpp +++ b/src/modules/location/Location.cpp @@ -4,201 +4,214 @@ #include "../../common/FormatHelper.h" #include "../../common/mappers/precisionMapper/PrecisionMapper.h" -#include "data/Countries.h" -#include "data/Directions.h" #include "data/australia/AustraliaAddresses.h" +#include "data/brazil/BrazilAddresses.h" +#include "data/Countries.h" #include "data/czech/CzechAddresses.h" +#include "data/denmark/DenmarkAddresses.h" +#include "data/Directions.h" +#include "data/estonia/EstoniaAddresses.h" +#include "data/finland/FinlandAddresses.h" #include "data/france/FranceAddresses.h" -#include "data/poland/PolandAddresses.h" +#include "data/germany/GermanyAddresses.h" +#include "data/india/IndiaAddresses.h" #include "data/italy/ItalyAddresses.h" +#include "data/poland/PolandAddresses.h" +#include "data/romania/RomaniaAddresses.h" #include "data/russia/RussiaAddresses.h" -#include "data/finland/FinlandAddresses.h" -#include "data/brazil/BrazilAddresses.h" +#include "data/spain/SpainAddresses.h" #include "data/TimeZones.h" #include "data/ukraine/UkraineAddresses.h" -#include "data/germany/GermanyAddresses.h" #include "data/usa/UsaAddresses.h" -#include "data/spain/SpainAddresses.h" #include "faker-cxx/Helper.h" #include "faker-cxx/Person.h" #include "faker-cxx/String.h" -#include "data/india/IndiaAddresses.h" -#include "data/denmark/DenmarkAddresses.h" -#include "data/estonia/EstoniaAddresses.h" namespace faker { - namespace - { - const std::map countryToCountryAddressesMapping{ - {AddressCountry::Usa, usaAddresses}, {AddressCountry::Poland, polandAddresses}, - {AddressCountry::Russia, russiaAddresses}, {AddressCountry::France, franceAddresses}, - {AddressCountry::Ukraine, ukraineAddresses}, {AddressCountry::Italy, italyAddresses}, - {AddressCountry::Germany, germanyAddresses}, {AddressCountry::Czech, czechAddresses}, - {AddressCountry::Australia, australiaAddresses}, {AddressCountry::India, indiaAddresses}, - {AddressCountry::Denmark, denmarkAddresses}, {AddressCountry::Spain, spainAddresses}, - {AddressCountry::Brazil, brazilAddresses}, {AddressCountry::Finland, finlandAddresses}, - {AddressCountry::Estonia, estoniaAddresses}, - }; - - const std::map countryAddressToCountryMapping{ - {AddressCountry::Usa, Country::Usa}, {AddressCountry::Poland, Country::Poland}, - {AddressCountry::Russia, Country::Russia}, {AddressCountry::France, Country::France}, - {AddressCountry::Ukraine, Country::Ukraine}, {AddressCountry::Italy, Country::Italy}, - {AddressCountry::Germany, Country::Germany}, {AddressCountry::Czech, Country::Czech}, - {AddressCountry::Australia, Country::Australia}, {AddressCountry::India, Country::India}, - {AddressCountry::Denmark, Country::Denmark}, {AddressCountry::Spain, Country::Spain}, - {AddressCountry::Brazil, Country::Brazil}, {AddressCountry::Finland, Country::Finland}, - {AddressCountry::Estonia, Country::Estonia}, - }; - } +namespace +{ +const std::map countryToCountryAddressesMapping{ + {AddressCountry::Usa, usaAddresses}, + {AddressCountry::Poland, polandAddresses}, + {AddressCountry::Russia, russiaAddresses}, + {AddressCountry::France, franceAddresses}, + {AddressCountry::Ukraine, ukraineAddresses}, + {AddressCountry::Italy, italyAddresses}, + {AddressCountry::Germany, germanyAddresses}, + {AddressCountry::Czech, czechAddresses}, + {AddressCountry::Australia, australiaAddresses}, + {AddressCountry::India, indiaAddresses}, + {AddressCountry::Denmark, denmarkAddresses}, + {AddressCountry::Spain, spainAddresses}, + {AddressCountry::Brazil, brazilAddresses}, + {AddressCountry::Finland, finlandAddresses}, + {AddressCountry::Estonia, estoniaAddresses}, + {AddressCountry::Romania, romaniaAddresses}}; + +const std::map countryAddressToCountryMapping{{AddressCountry::Usa, Country::Usa}, + {AddressCountry::Poland, Country::Poland}, + {AddressCountry::Russia, Country::Russia}, + {AddressCountry::France, Country::France}, + {AddressCountry::Ukraine, Country::Ukraine}, + {AddressCountry::Italy, Country::Italy}, + {AddressCountry::Germany, Country::Germany}, + {AddressCountry::Czech, Country::Czech}, + {AddressCountry::Australia, Country::Australia}, + {AddressCountry::India, Country::India}, + {AddressCountry::Denmark, Country::Denmark}, + {AddressCountry::Spain, Country::Spain}, + {AddressCountry::Brazil, Country::Brazil}, + {AddressCountry::Finland, Country::Finland}, + {AddressCountry::Estonia, Country::Estonia}, + {AddressCountry::Romania, Country::Romania}}; +} - std::string Location::country() - { - return Helper::arrayElement(allCountries); - } +std::string Location::country() +{ + return Helper::arrayElement(allCountries); +} - std::string Location::countryCode() - { - return Helper::arrayElement(countryCodes); - } +std::string Location::countryCode() +{ + return Helper::arrayElement(countryCodes); +} - std::string Location::county(AddressCountry country) +std::string Location::county(AddressCountry country) +{ + const auto& countryAddresses = countryToCountryAddressesMapping.at(country); + if (countryAddresses.counties.empty()) { - const auto& countryAddresses = countryToCountryAddressesMapping.at(country); - if(countryAddresses.counties.empty()) - { - return ""; - } - return Helper::arrayElement(countryAddresses.counties); + return ""; } + return Helper::arrayElement(countryAddresses.counties); +} - std::string Location::state(AddressCountry country) - { - const auto& countryAddresses = countryToCountryAddressesMapping.at(country); - return Helper::arrayElement(countryAddresses.states); - } +std::string Location::state(AddressCountry country) +{ + const auto& countryAddresses = countryToCountryAddressesMapping.at(country); + return Helper::arrayElement(countryAddresses.states); +} - std::string Location::city(AddressCountry country) - { - const auto& countryAddresses = countryToCountryAddressesMapping.at(country); +std::string Location::city(AddressCountry country) +{ + const auto& countryAddresses = countryToCountryAddressesMapping.at(country); - const auto cityFormat = Helper::arrayElement(countryAddresses.cityFormats); + const auto cityFormat = Helper::arrayElement(countryAddresses.cityFormats); - const auto dataGeneratorsMapping = std::map>{ - {"firstName", [&country]() { return Person::firstName(countryAddressToCountryMapping.at(country)); }}, - {"lastName", [&country]() { return Person::lastName(countryAddressToCountryMapping.at(country)); }}, - {"cityName", - [&countryAddresses]() { return Helper::arrayElement(countryAddresses.cities); }}, - {"cityPrefix", - [&countryAddresses]() { return Helper::arrayElement(countryAddresses.cityPrefixes); }}, - {"citySuffix", - [&countryAddresses]() { return Helper::arrayElement(countryAddresses.citySuffixes); }}}; + const auto dataGeneratorsMapping = std::map>{ + {"firstName", [&country]() { return Person::firstName(countryAddressToCountryMapping.at(country)); }}, + {"lastName", [&country]() { return Person::lastName(countryAddressToCountryMapping.at(country)); }}, + {"cityName", [&countryAddresses]() { return Helper::arrayElement(countryAddresses.cities); }}, + {"cityPrefix", + [&countryAddresses]() { return Helper::arrayElement(countryAddresses.cityPrefixes); }}, + {"citySuffix", + [&countryAddresses]() { return Helper::arrayElement(countryAddresses.citySuffixes); }}}; - return FormatHelper::fillTokenValues(cityFormat, dataGeneratorsMapping); - } + return FormatHelper::fillTokenValues(cityFormat, dataGeneratorsMapping); +} - std::string Location::zipCode(AddressCountry country) - { - const auto& countryAddresses = countryToCountryAddressesMapping.at(country); +std::string Location::zipCode(AddressCountry country) +{ + const auto& countryAddresses = countryToCountryAddressesMapping.at(country); - return Helper::replaceSymbolWithNumber(countryAddresses.zipCodeFormat); - } + return Helper::replaceSymbolWithNumber(countryAddresses.zipCodeFormat); +} - std::string Location::streetAddress(AddressCountry country) - { - const auto& countryAddresses = countryToCountryAddressesMapping.at(country); +std::string Location::streetAddress(AddressCountry country) +{ + const auto& countryAddresses = countryToCountryAddressesMapping.at(country); - const auto dataGeneratorsMapping = std::map>{ - {"buildingNumber", [&country]() { return buildingNumber(country); }}, - {"street", [&country]() { return street(country); }}, - {"secondaryAddress", [&country]() { return secondaryAddress(country); }}}; + const auto dataGeneratorsMapping = std::map>{ + {"buildingNumber", [&country]() { return buildingNumber(country); }}, + {"street", [&country]() { return street(country); }}, + {"secondaryAddress", [&country]() { return secondaryAddress(country); }}}; - const auto addressFormat = Helper::arrayElement(countryAddresses.addressFormats); + const auto addressFormat = Helper::arrayElement(countryAddresses.addressFormats); - return FormatHelper::fillTokenValues(addressFormat, dataGeneratorsMapping); - } + return FormatHelper::fillTokenValues(addressFormat, dataGeneratorsMapping); +} - std::string Location::street(AddressCountry country) - { - const auto& countryAddresses = countryToCountryAddressesMapping.at(country); +std::string Location::street(AddressCountry country) +{ + const auto& countryAddresses = countryToCountryAddressesMapping.at(country); - const auto streetFormat = Helper::arrayElement(countryAddresses.streetFormats); + const auto streetFormat = Helper::arrayElement(countryAddresses.streetFormats); - const auto dataGeneratorsMapping = std::map>{ - {"firstName", [&country]() { return Person::firstName(countryAddressToCountryMapping.at(country)); }}, - {"lastName", [&country]() { return Person::lastName(countryAddressToCountryMapping.at(country)); }}, - {"streetName", - [&countryAddresses]() { return Helper::arrayElement(countryAddresses.streetNames); }}, - {"streetPrefix", - [&countryAddresses]() { return Helper::arrayElement(countryAddresses.streetPrefixes); }}, - {"streetSuffix", - [&countryAddresses]() { return Helper::arrayElement(countryAddresses.streetSuffixes); }}}; + const auto dataGeneratorsMapping = std::map>{ + {"firstName", [&country]() { return Person::firstName(countryAddressToCountryMapping.at(country)); }}, + {"lastName", [&country]() { return Person::lastName(countryAddressToCountryMapping.at(country)); }}, + {"streetName", + [&countryAddresses]() { return Helper::arrayElement(countryAddresses.streetNames); }}, + {"streetPrefix", + [&countryAddresses]() { return Helper::arrayElement(countryAddresses.streetPrefixes); }}, + {"streetSuffix", + [&countryAddresses]() { return Helper::arrayElement(countryAddresses.streetSuffixes); }}}; - return FormatHelper::fillTokenValues(streetFormat, dataGeneratorsMapping); - } + return FormatHelper::fillTokenValues(streetFormat, dataGeneratorsMapping); +} - std::string Location::buildingNumber(AddressCountry country) - { - const auto& countryAddresses = countryToCountryAddressesMapping.at(country); +std::string Location::buildingNumber(AddressCountry country) +{ + const auto& countryAddresses = countryToCountryAddressesMapping.at(country); - const auto buildingNumberFormat = Helper::arrayElement(countryAddresses.buildingNumberFormats); + const auto buildingNumberFormat = Helper::arrayElement(countryAddresses.buildingNumberFormats); - return Helper::replaceSymbolWithNumber(buildingNumberFormat); - } + return Helper::replaceSymbolWithNumber(buildingNumberFormat); +} - std::string Location::secondaryAddress(AddressCountry country) - { - const auto& countryAddresses = countryToCountryAddressesMapping.at(country); +std::string Location::secondaryAddress(AddressCountry country) +{ + const auto& countryAddresses = countryToCountryAddressesMapping.at(country); - if (countryAddresses.secondaryAddressFormats.empty()) - { - return ""; - } + if (countryAddresses.secondaryAddressFormats.empty()) + { + return ""; + } - const auto secondaryAddressFormat = Helper::arrayElement(countryAddresses.secondaryAddressFormats); + const auto secondaryAddressFormat = Helper::arrayElement(countryAddresses.secondaryAddressFormats); - return Helper::replaceSymbolWithNumber(secondaryAddressFormat); - } + return Helper::replaceSymbolWithNumber(secondaryAddressFormat); +} - std::string Location::latitude(Precision precision) - { - const std::floating_point auto latitude = Number::decimal(-90.0, 90.0); +std::string Location::latitude(Precision precision) +{ + const std::floating_point auto latitude = Number::decimal(-90.0, 90.0); - std::stringstream ss; + std::stringstream ss; - ss << std::fixed; + ss << std::fixed; - ss.precision(PrecisionMapper::mapToDecimalPlaces(precision)); + ss.precision(PrecisionMapper::mapToDecimalPlaces(precision)); - ss << latitude; + ss << latitude; - return ss.str(); - } + return ss.str(); +} - std::string Location::longitude(Precision precision) - { - const std::floating_point auto longitude = Number::decimal(-180.0, 180.0); +std::string Location::longitude(Precision precision) +{ + const std::floating_point auto longitude = Number::decimal(-180.0, 180.0); - std::stringstream ss; + std::stringstream ss; - ss << std::fixed; + ss << std::fixed; - ss.precision(PrecisionMapper::mapToDecimalPlaces(precision)); + ss.precision(PrecisionMapper::mapToDecimalPlaces(precision)); - ss << longitude; + ss << longitude; - return ss.str(); - } + return ss.str(); +} - std::string Location::direction() - { - return Helper::arrayElement(directions); - } +std::string Location::direction() +{ + return Helper::arrayElement(directions); +} - std::string Location::timeZone() - { - return Helper::arrayElement(timeZones); - } +std::string Location::timeZone() +{ + return Helper::arrayElement(timeZones); +} } diff --git a/src/modules/location/LocationTest.cpp b/src/modules/location/LocationTest.cpp index 5dc4c6671..625905baf 100644 --- a/src/modules/location/LocationTest.cpp +++ b/src/modules/location/LocationTest.cpp @@ -38,6 +38,7 @@ #include "data/india/IndiaAddresses.h" #include "data/italy/ItalyAddresses.h" #include "data/poland/PolandAddresses.h" +#include "data/romania/RomaniaAddresses.h" #include "data/russia/RussiaAddresses.h" #include "data/spain/SpainAddresses.h" #include "data/TimeZones.h" @@ -65,6 +66,7 @@ const std::map countryToCountryAddressesMappin {AddressCountry::Brazil, brazilAddresses}, {AddressCountry::Finland, finlandAddresses}, {AddressCountry::Estonia, estoniaAddresses}, + {AddressCountry::Romania, romaniaAddresses}, }; const std::map generatedTestName{ @@ -83,6 +85,7 @@ const std::map generatedTestName{ {AddressCountry::Brazil, "shouldGenerateBrazilAddress"}, {AddressCountry::Finland, "shouldGenerateFinlandAddress"}, {AddressCountry::Estonia, "shouldGenerateEstoniaAddress"}, + {AddressCountry::Romania, "shouldGenerateRomaniaAddress"}, }; } diff --git a/src/modules/location/data/estonia/EstoniaAddresses.h b/src/modules/location/data/estonia/EstoniaAddresses.h index 04f068007..5aa0739a2 100644 --- a/src/modules/location/data/estonia/EstoniaAddresses.h +++ b/src/modules/location/data/estonia/EstoniaAddresses.h @@ -2,11 +2,12 @@ #include "../CountryAddresses.h" #include "EstoniaCities.h" -#include "EstoniaCounties.h" +#include "EstoniaStates.h" #include "EstoniaStreetNames.h" #include "EstoniaStreetSuffixes.h" -namespace faker { +namespace faker +{ const std::string estoniaZipCodeFormat{"#####"}; @@ -30,6 +31,7 @@ const CountryAddresses estoniaAddresses{estoniaZipCodeFormat, {}, estoniaCities, {}, - {}, - estoniaCounties}; -} \ No newline at end of file + estoniaStates, + {}}; + +} diff --git a/src/modules/location/data/estonia/EstoniaCounties.h b/src/modules/location/data/estonia/EstoniaCounties.h deleted file mode 100644 index 97b210121..000000000 --- a/src/modules/location/data/estonia/EstoniaCounties.h +++ /dev/null @@ -1,28 +0,0 @@ -#pragma once - -#include -#include - -namespace faker -{ -const std::vector estoniaCounties { - - "Harju", - "Hiiu", - "Ida-Viru", - "Jõgeva", - "Järva", - "Lääne", - "Lääne-Viru", - "Põlva", - "Pärnu", - "Rapla", - "Saare", - "Tartu", - "Valga", - "Viljandi", - "Võru", - -}; - -} \ No newline at end of file diff --git a/src/modules/location/data/estonia/EstoniaStates.h b/src/modules/location/data/estonia/EstoniaStates.h new file mode 100644 index 000000000..7114b4a7d --- /dev/null +++ b/src/modules/location/data/estonia/EstoniaStates.h @@ -0,0 +1,15 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector estoniaStates{ + + "Harju", "Hiiu", "Ida-Viru", "Jõgeva", "Järva", "Lääne", "Lääne-Viru", "Põlva", + "Pärnu", "Rapla", "Saare", "Tartu", "Valga", "Viljandi", "Võru", + +}; + +} diff --git a/src/modules/location/data/romania/RomaniaAddresses.h b/src/modules/location/data/romania/RomaniaAddresses.h new file mode 100644 index 000000000..8d9960318 --- /dev/null +++ b/src/modules/location/data/romania/RomaniaAddresses.h @@ -0,0 +1,39 @@ +#pragma once + +#include "../CountryAddresses.h" +#include "RomaniaCities.h" +#include "RomaniaStates.h" +#include "RomaniaStreetNames.h" +#include "RomaniaStreetPrefixes.h" + +namespace faker +{ +const std::string romaniaZipCodeFormat{"######"}; + +const std::vector romaniaAddressFormats{"{street} {buildingNumber}", + "{street} {buildingNumber} {buildingBlock}", + "{street} {buildingNumber}/{apartmentNumber}"}; + +const std::vector romaniaBuildingNumberFormats{"#", "##", "###"}; + +const std::vector romaniaStreetFormats{"{streetPrefix} {streetName}"}; + +const std::vector romaniaCityFormats{"{cityName}"}; + +const std::vector romaniaSecondaryAddressFormats{"Scara ###", "Apartament ###", "Etaj ###", "Bloc ###"}; + +const CountryAddresses romaniaAddresses{romaniaZipCodeFormat, + romaniaAddressFormats, + romaniaSecondaryAddressFormats, + romaniaStreetFormats, + romaniaStreetPrefixes, + romaniaStreetNames, + {}, + romaniaBuildingNumberFormats, + romaniaCityFormats, + {}, + romaniaCities, + {}, + romaniaStates, + {}}; +} diff --git a/src/modules/location/data/romania/RomaniaCities.h b/src/modules/location/data/romania/RomaniaCities.h new file mode 100644 index 000000000..5146f3764 --- /dev/null +++ b/src/modules/location/data/romania/RomaniaCities.h @@ -0,0 +1,185 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector romaniaCities{"Bucharest", + "Cluj-Napoca", + "Timișoara", + "Iași", + "Constanța", + "Craiova", + "Brașov", + "Galați", + "Ploiești", + "Oradea", + "Brăila", + "Arad", + "Pitești", + "Sibiu", + "Bacău", + "Târgu-Mureș", + "Baia Mare", + "Buzău", + "Botoșani", + "Satu Mare", + "Râmnicu Vâlcea", + "Drobeta-Turnu Severin", + "Suceava", + "Piatra Neamț", + "Târgu Jiu", + "Târgoviște", + "Focșani", + "Tulcea", + "Slatina", + "Călărași", + "Alba Iulia", + "Giurgiu", + "Deva", + "Hunedoara", + "Zalău", + "Sfântu Gheorghe", + "Bistrița", + "Râmnicu Sărat", + "Vaslui", + "Roman", + "Turda", + "Medgidia", + "Slobozia", + "Alexandria", + "Reșița", + "Câmpina", + "Bocșa", + "Miercurea Ciuc", + "Petroșani", + "Fălticeni", + "Lugoj", + "Vatra Dornei", + "Tecuci", + "Mangalia", + "Roșiorii de Vede", + "Moreni", + "Pașcani", + "Carei", + "Sebeș", + "Fetești", + "Odorheiu Secuiesc", + "Motru", + "Câmpia Turzii", + "Rădăuți", + "Sighetu Marmației", + "Cernavodă", + "Buftea", + "Mioveni", + "Băicoi", + "Caracal", + "Făgăraș", + "Dorohoi", + "Lupeni", + "Băile Tușnad", + "Borșa", + "Săcele", + "Făurei", + "Șimleu Silvaniei", + "Gheorgheni", + "Hârlău", + "Panciu", + "Târnăveni", + "Pucioasa", + "Salonta", + "Victoria", + "Cugir", + "Târgu Ocna", + "Cisnădie", + "Călan", + "Bolintin-Vale", + "Boldești-Scăeni", + "Mizil", + "Săcueni", + "Oțelu Roșu", + "Lehliu-Gară", + "Nădlac", + "Viseu de Sus", + "Filiași", + "Breaza", + "Dărmănești", + "Jibou", + "Răcari", + "Sângeorz-Băi", + "Urziceni", + "Caransebeș", + "Rupea", + "Bălan", + "Fieni", + "Căzănești", + "Adjud", + "Întorsura Buzăului", + "Agnita", + "Toplița", + "Luduș", + "Mihăilești", + "Băile Herculane", + "Sânnicolau Mare", + "Covasna", + "Negrești-Oaș", + "Băile Govora", + "Vașcău", + "Bumbesti-Jiu", + "Dăbuleni", + "Călimănești", + "Jimbolia", + "Târgu Frumos", + "Budești", + "Petrila", + "Murfatlar", + "Săveni", + "Ocna Mureș", + "Salcea", + "Slănic", + "Zimnicea", + "Uricani", + "Turnu Măgurele", + "Măcin", + "Băile Olănești", + "Babadag", + "Târgu Lăpuș", + "Moinești", + "Brad", + "Cisnădioara", + "Hârșova", + "Fierbinți-Târg", + "Horezu", + "Vicovu de Sus", + "Găești", + "Rovinari", + "Plopeni", + "Ștefănești", + "Corabia", + "Curtici", + "Măgurele", + "Mărășești", + "Urlați", + "Codlea", + "Predeal", + "Sinaia", + "Comănești", + "Huedin", + "Beiuș", + "Topoloveni", + "Seini", + "Vălenii de Munte", + "Câmpulung", + "Năsăud", + "Odobești", + "Vlăhița", + "Băbeni", + "Borsec", + "Ștei", + "Dolhasca", + "Darabani", + "Zărnești", + "Pecica", + "Tășnad"}; +} diff --git a/src/modules/location/data/romania/RomaniaStates.h b/src/modules/location/data/romania/RomaniaStates.h new file mode 100644 index 000000000..cdf2353d1 --- /dev/null +++ b/src/modules/location/data/romania/RomaniaStates.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector romaniaStates = { + "Alba", "Arad", "Argeș", "Bacău", "Bihor", "Bistrița-Năsăud", + "Botoșani", "Brăila", "Brașov", "Buzău", "Călărași", "Caraș-Severin", + "Cluj", "Constanța", "Covasna", "Dâmbovița", "Dolj", "Galați", + "Giurgiu", "Gorj", "Harghita", "Hunedoara", "Ialomița", "Iași", + "Ilfov", "Maramureș", "Mehedinți", "Mureș", "Neamț", "Olt", + "Prahova", "Satu Mare", "Sălaj", "Sibiu", "Suceava", "Teleorman", + "Timiș", "Tulcea", "Vaslui", "Vâlcea", "Vrancea"}; +} diff --git a/src/modules/location/data/romania/RomaniaStreetNames.h b/src/modules/location/data/romania/RomaniaStreetNames.h new file mode 100644 index 000000000..d520b1da5 --- /dev/null +++ b/src/modules/location/data/romania/RomaniaStreetNames.h @@ -0,0 +1,48 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector romaniaStreetNames{"Strada Mihai Eminescu", + "Bulevardul Unirii", + "Calea Victoriei", + "Strada Ion C. Brătianu", + "Bulevardul Decebal", + "Strada Tudor Vladimirescu", + "Bulevardul Libertății", + "Strada 1 Decembrie", + "Calea Dorobanților", + "Strada Avram Iancu", + "Bulevardul Iuliu Maniu", + "Strada Gheorghe Lazăr", + "Bulevardul Magheru", + "Strada Horea", + "Bulevardul Revoluției", + "Strada Matei Basarab", + "Bulevardul Regina Maria", + "Strada Vasile Alecsandri", + "Bulevardul Dacia", + "Strada Traian", + "Strada Ștefan cel Mare", + "Bulevardul Nicolae Bălcescu", + "Strada Ferdinand I", + "Bulevardul Carol I", + "Strada George Coșbuc", + "Bulevardul Ștefan cel Mare și Sfânt", + "Strada Aurel Vlaicu", + "Bulevardul 1 Mai", + "Strada Mihail Kogălniceanu", + "Bulevardul Vasile Milea", + "Strada Nicolae Titulescu", + "Bulevardul Mihai Viteazu", + "Strada Alexandru Ioan Cuza", + "Bulevardul Gheorghe Doja", + "Strada Avram Iancu", + "Bulevardul Alexandru Lăpușneanu", + "Strada Gheorghe Șincai", + "Bulevardul Nicolae Grigorescu", + "Strada Constantin Brâncoveanu", + "Bulevardul 15 Noiembrie"}; +} diff --git a/src/modules/location/data/romania/RomaniaStreetPrefixes.h b/src/modules/location/data/romania/RomaniaStreetPrefixes.h new file mode 100644 index 000000000..1dc3913d8 --- /dev/null +++ b/src/modules/location/data/romania/RomaniaStreetPrefixes.h @@ -0,0 +1,9 @@ +#pragma once + +#include +#include + +namespace faker +{ +const std::vector romaniaStreetPrefixes{"strada", "bulevard", "calea", "piața", "bulevardul", "calea"}; +}