-
-
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.
Add location addresses data from Finland 🇫🇮 (#440)
* add finland location * fix test fail * Fix bugs * Change test
- Loading branch information
Showing
7 changed files
with
214 additions
and
34 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
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,36 @@ | ||
#pragma once | ||
|
||
#include "../CountryAddresses.h" | ||
#include "FinlandCities.h" | ||
#include "FinlandStates.h" | ||
#include "FinlandStreetSuffixes.h" | ||
|
||
namespace faker { | ||
|
||
const std::string finlandZipCodeFormat{"#####"}; | ||
|
||
const std::vector<std::string> finlandAddressFormats{"{street} {buildingNumber}", "{street} {buildingNumber} {secondaryAddress}"}; | ||
|
||
const std::vector<std::string> finlandSecondaryAddressFormats{"A", "B", "C", "A #", "A ##", "B #", "B ##", "C #", "C ##"}; | ||
|
||
const std::vector<std::string> finlandBuildingNumberFormats{"###", "##", "#"}; | ||
|
||
const std::vector<std::string> finlandStreetFormats{"{firstName} {streetSuffix}", "{lastName} {streetSuffix}"}; | ||
|
||
const std::vector<std::string> finlandCityFormats{"{cityName}"}; | ||
|
||
const CountryAddresses finlandAddresses{finlandZipCodeFormat, | ||
finlandAddressFormats, | ||
finlandSecondaryAddressFormats, | ||
finlandStreetFormats, | ||
{}, | ||
{}, | ||
finlandStreetSuffixes, | ||
finlandBuildingNumberFormats, | ||
finlandCityFormats, | ||
{}, | ||
finlandCities, | ||
{}, | ||
finlandStates, | ||
{}}; | ||
} |
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,30 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> finlandCities{ | ||
"Espoo", | ||
"Helsinki", | ||
"Hyvinkää", | ||
"Iisalmi", | ||
"Joensuu", | ||
"Jyväskylä", | ||
"Kokkola", | ||
"Kuopio", | ||
"Lahti", | ||
"Oulu", | ||
"Pori", | ||
"Porvoo", | ||
"Raisio", | ||
"Rovaniemi", | ||
"Sastamala", | ||
"Tampere", | ||
"Turku", | ||
"Vaasa", | ||
"Valkeakoski", | ||
"Vantaa", | ||
}; | ||
} |
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,29 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> finlandStates = { | ||
"Ahvenanmaa", | ||
"Etelä-Karjala", | ||
"Etelä-Pohjanmaa", | ||
"Etelä-Savo", | ||
"Kainuu", | ||
"Kanta-Häme", | ||
"Keski-Pohjanmaa", | ||
"Keski-Suomi", | ||
"Kymenlaakso", | ||
"Lappi", | ||
"Päijät-Häme", | ||
"Pirkanmaa", | ||
"Pohjanmaa", | ||
"Pohjois-Karjala", | ||
"Pohjois-Pohjanmaa", | ||
"Pohjois-Savo", | ||
"Satakunta", | ||
"Uusimaa", | ||
"Varsinais-Suomi", | ||
}; | ||
} |
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,21 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
#include <vector> | ||
|
||
namespace faker | ||
{ | ||
const std::vector<std::string> finlandStreetSuffixes = { | ||
"katu", | ||
"tie", | ||
"kuja", | ||
"polku", | ||
"kaari", | ||
"linja", | ||
"raitti", | ||
"rinne", | ||
"penger", | ||
"ranta", | ||
"väylä", | ||
}; | ||
} |