Skip to content

Commit a2a2c72

Browse files
authored
House numbers according to DIN 5008
House numbers according to DIN 5008 Some of the house numbers for Germany created using Faker do not comply with DIN 5008: According to DIN 5008, you insert a space before the house number after a street name. If the house number is followed by a letter, this is again separated by a space. Compound house numbers are written with the "to" character (10 - 25) or the slash. Insert an apartment number after the house number and separate it with two slashes and a space. Examples: Berliner Ring 27 Hindenburgdamm 19 a Hochstraße 56/58 Hochstraße 56 - 58 Züricher Strasse 17// 28 URL: https://www.sekada.de/din-5008/din-lexikon-a-z/artikel/din-5008-schriftsatzregeln-fuer-daten-zeiten-hausnummern-und-co/ Translated with DeepL.com (free version)
1 parent 2114cc6 commit a2a2c72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Provider/de_DE/Address.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
class Address extends \Faker\Provider\Address
66
{
7-
protected static $buildingNumber = ['%##', '%#', '%', '%/%', '%#[abc]', '%[abc]'];
7+
protected static $buildingNumber = ['%##', '%#', '%', '%/%', '%# [a-h]', '% [a-h]', '%# - %#', '%#// %#'];
88

99
protected static $streetSuffixLong = [
1010
'Gasse', 'Platz', 'Ring', 'Straße', 'Weg', 'Allee',

0 commit comments

Comments
 (0)