openplzapi.data icon indicating copy to clipboard operation
openplzapi.data copied to clipboard

You're using the term "Regionalschlüssel" incorrectly

Open Enyium opened this issue 5 months ago • 1 comments

You use the term "Regionalschlüssel"/"regional key" in various places (list probably incomplete):

The Regionalschlüssel is defined as having 12 digits. You not only call the different shortened variants of it also a Regionalschlüssel, but also the 8-digit Gemeindeschlüssel, which can be derived from the Regionalschlüssel by removing 4 digits in the middle.

In my code, I used the following English and German terms for the different variants. I used "ID" instead of the literal translation "key" because the title of this Wikipedia article suggests that and it fits quite well:

  • state ID (2 digits)
  • goverment district ID (3 digits)
    • The term "Regierungsbezirksschlüssel" was used by Destatis until around 2005 according to Google search. It still fits.
  • Baden-Württemberg region ID (4 digits)
  • county ID (5 digits)
  • municipal-association ID (9 digits)
    • "Gemeindeverbandsschlüssel" is used by Destatis to refer to the 4-digit part, not the shortened 12-digit municipality ID, so shouldn't be used.
  • 12-digit municipality ID
  • 8-digit municipality ID

You could always talk about a "shortened 12-digit municipality ID" or "gekürzter Amtlicher Regionalschlüssel"/"Amtlicher Regionalschlüssel, gekürzt bis zum/zur ...".

I know that Datensatzbeschreibung_GV100AD.pdf and Datensatzbeschreibung_GV100NAD.pdf from the GV100 .zip files also say "Amtlicher Regionalschlüssel", but that's obviously also wrong and should be "Amtlicher Gemeindeschlüssel". This would fit as a group description, in which role the term would be used there, with missing parts clearly indicated. Without such context, I don't think you should just call every shortened variant "Regionalschlüssel" or "Gemeindeschlüssel".


On https://www.openplzapi.org/de/germany/, there are two occurrences of:

Kombination aus Regionalschlüssel des Kreises und Schlüssel des Gemeindenverbandes (8-stellig)

"8-stellig" is incorrect, it has 9 digits. See here.

Enyium avatar Jul 16 '25 21:07 Enyium

Thanks a lot for your feedback.

"8-stellig" is incorrect, it has 9 digits.

Fixed.

About regional key/Regionalschlüssel: You are probably right, I will revise the documentation as you recommend, but I cannot change the API interface, as this would lead to breaking changes.

fstueber avatar Jul 27 '25 13:07 fstueber