blob: b8e7ebabffe71400bce369f1ac943f2da1b92100 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
import type { LocaleEntry } from './definitions';
/**
* The possible definitions related to addresses and locations.
*/
export type LocationDefinition = LocaleEntry<{
/**
* Postcodes patterns by state
*/
postcode_by_state: { [state: string]: { min: number; max: number } };
/**
* Postcodes patterns.
*/
postcode: string | string[];
/**
* The patterns to generate city names.
*/
city_pattern: string[];
/**
* The names of actual cities.
*/
city_name: string[];
/**
* Common city prefixes.
*/
city_prefix: string[];
/**
* Common city suffixes.
*/
city_suffix: string[];
/**
* The names of all countries.
*/
country: string[];
/**
* The [ISO_3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) country codes.
*/
country_code: Array<{ alpha2: string; alpha3: string }>;
/**
* The names of this country's states, or other first-level administrative areas.
*/
state: string[];
/**
* The abbreviated names of this country's states, or other first-level administrative areas.
*/
state_abbr: string[];
/**
* The names of counties, or other second-level administrative areas, inside the country's states.
*/
county: string[];
/**
* The names of the compass directions.
* First the 4 cardinal directions, then the 4 ordinal directions.
*/
direction: string[];
/**
* The abbreviated names of the compass directions.
* First the 4 cardinal directions, then the 4 ordinal directions.
*/
direction_abbr: string[];
/**
* The pattern used to generate building numbers. Since building numbers rarely start with 0, any consecutive # characters will be replaced by a number without a leading zero.
*/
building_number: string[];
/**
* The patterns to generate street names.
*/
street_pattern: string[];
/**
* The names of actual streets.
*/
street_name: string[];
/**
* Common street prefixes.
*/
street_prefix: string[];
/**
* Common street suffixes.
*/
street_suffix: string[];
/**
* The pattern used to generate street addresses.
*/
street_address: {
/**
* The fake pattern to generate only the street address.
*/
normal: string;
/**
* The fake pattern to generate the full street address including the secondary address.
*/
full: string;
};
/**
* The address "inside" an address/e.g. an apartment or office. Since these rarely start with 0, any consecutive # characters will be replaced by a number without a leading zero.
*/
secondary_address: string[];
/**
* A list of timezones names.
*/
time_zone: string[];
}>;
|