Faker C++
Loading...
Searching...
No Matches
Location.h
Go to the documentation of this file.
1#pragma once
2
3#include <string_view>
4
5#include "faker-cxx/Export.h"
6#include "types/Precision.h"
7
9{
11{
13 Brazil,
14 Czech,
15 Denmark,
16 Estonia,
17 Finland,
18 France,
19 Germany,
20 India,
21 Italy,
22 Poland,
23 Russia,
24 Spain,
25 Ukraine,
26 Usa,
27};
28
38FAKER_CXX_EXPORT std::string_view country();
39
49FAKER_CXX_EXPORT std::string_view countryCode();
50
62FAKER_CXX_EXPORT std::string_view state(AddressCountry country = AddressCountry::Usa);
63
75FAKER_CXX_EXPORT std::string city(AddressCountry country = AddressCountry::Usa);
76
89FAKER_CXX_EXPORT std::string zipCode(AddressCountry country = AddressCountry::Usa);
90
103
115FAKER_CXX_EXPORT std::string street(AddressCountry country = AddressCountry::Usa);
116
129
143
155FAKER_CXX_EXPORT std::string latitude(Precision precision = Precision::FourDp);
156
168FAKER_CXX_EXPORT std::string longitude(Precision precision = Precision::FourDp);
169
179FAKER_CXX_EXPORT std::string_view direction();
180
190FAKER_CXX_EXPORT std::string_view timeZone();
191}
Definition Location.h:9
FAKER_CXX_EXPORT std::string street(AddressCountry country=AddressCountry::Usa)
Returns a random street for given country.
FAKER_CXX_EXPORT std::string_view state(AddressCountry country=AddressCountry::Usa)
Returns a random state for a given country.
FAKER_CXX_EXPORT std::string longitude(Precision precision=Precision::FourDp)
Generates a random longitude.
FAKER_CXX_EXPORT std::string city(AddressCountry country=AddressCountry::Usa)
Returns a random city for given country.
FAKER_CXX_EXPORT std::string zipCode(AddressCountry country=AddressCountry::Usa)
Returns a random zip code for given country.
FAKER_CXX_EXPORT std::string_view timeZone()
Generates a random time zone.
FAKER_CXX_EXPORT std::string latitude(Precision precision=Precision::FourDp)
Generates a random latitude.
FAKER_CXX_EXPORT std::string_view countryCode()
Returns a random country code.
FAKER_CXX_EXPORT std::string_view country()
Returns a random country name.
FAKER_CXX_EXPORT std::string secondaryAddress(AddressCountry country=AddressCountry::Usa)
Returns a random secondary address number for given country. This refers to a specific location at a ...
FAKER_CXX_EXPORT std::string buildingNumber(AddressCountry country=AddressCountry::Usa)
Returns a random building number for given country.
FAKER_CXX_EXPORT std::string_view direction()
Generates a random direction from cardinal and ordinal directions.
FAKER_CXX_EXPORT std::string streetAddress(AddressCountry country=AddressCountry::Usa)
Returns a random street address for given country.
AddressCountry
Definition Location.h:11