Skip to content

Commit

Permalink
House numbers according to DIN 5008
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
mbraun81 authored Jul 11, 2024
1 parent 2114cc6 commit a2a2c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/de_DE/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

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

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

0 comments on commit a2a2c72

Please sign in to comment.