Skip to content

Validate SiteProfile address for Germany #1145

@rafa-munoz

Description

@rafa-munoz

Current behavior

At the moment anyone can save any German address with the format that they want. This fact can create inconsistencies:

  • We don't send addresses properly formated to third parties (e.g.: Google Maps).
  • Clients do not know how to store in a proper way addresses and get lost with address line numbers.

Expected behavior

In order to have better control of that, we need to check all fields before saving using the following schema: https://en.wikipedia.org/wiki/Address_(geography)#Germany

  • The postal code always consists of five digits.
  • Building number can be a combination of numbers and letters. E.g.: 16A. It´s also possible that it does not exist, but those are corner cases for Government buildings.
  • There are a few places that have house numbers but no street names.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions