Skip to content

Commit

Permalink
Providing Ludwigshafen besides Mannheim for NDC 621 based on the star…
Browse files Browse the repository at this point in the history
  • Loading branch information
Anrufliste committed May 4, 2024
1 parent bea290e commit b61cf95
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 4 deletions.
8 changes: 7 additions & 1 deletion REPORTED_ISSUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,10 @@ However, we have provided a [test case to verify if the labels are corrected](ht

Although the Smart Speaker has been retired, we identified other projects that could benefit from the wrapper and open-sourced it on May 3rd, 2023.
While we are currently maintaining the basic implementation, the previous discussion is catching up to question if we should extend the knowledge of the German Number plan to other functions as validating.
When we have further insights, we will report them as issues, re-engage with Google, and list the new issues in this file.
When we have further insights, we will report them as issues, re-engage with Google, and list the new issues in this file.

### 2024-05-04 - [GeoCoder labels German shared NDC 212(9) correctly but not 621(x)(y)](https://issuetracker.google.com/issues/338710341)

BnetzA [described special case for NDC 212 and 621](https://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/ONVerzeichnisse/ONBVerzeichnis/Sonderregelungen0212_0621.pdf?__blob=publicationFile&v=1) the first one is correctly recognized by geocoder and the two cities are correctly labeled. But the second case is not recognized and only the city Mannheim is used for labeling and not Ludwigshafen.

We have provided Ludwighafen in our labeling data.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<artifactId>normalizer</artifactId>
<name>Phonenumber Normalizer</name>
<description>Library to work with phonenumbers, especially to fix googles PhoneLib ignoring German Landline specifics.</description>
<version>1.1.25-SNAPSHOT</version>
<version>1.2.0</version>
<packaging>jar</packaging>
<url>https://github.com/telekom/phonenumber-normalizer</url>

Expand Down
5 changes: 5 additions & 0 deletions src/main/resources/arealabels/nationallabels/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -3243,6 +3243,11 @@
"6207": "Wald Michelbach",
"6209": "Mörlenbach",
"621": "Mannheim",
"6215": "Ludwigshafen",
"6216": "Ludwigshafen",
"62195": "Ludwigshafen",
"62196": "Ludwigshafen",
"62199": "Ludwigshafen",
"6220": "Wilhelmsfeld",
"6221": "Heidelberg",
"6222": "Wiesloch",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ class PhoneAreaCodeComponentImplTest extends Specification {
"201" | "DE" | "Essen"
"202" | "DE" | "Wuppertal"
"6041" | "DE" | "Bottrop"
"60411" | "DE" | "Bottrop"
"60412" | "DE" | "XXX"
"60413" | "DE" | "Bottrop"
"205" | "US" | "Alabama"
"659" | "US" | "Alabama"
"203" | "US" | "Connecticut"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3307,7 +3307,13 @@ class PhoneNumberOfflineGeocoderTest extends Specification {
"6206" | "Lampertheim" | false
"6207" | "Wald Michelbach" | false
"6209" | "Mörlenbach" | false
"621" | "Mannheim" | false
"621" | "Mannheim" | false // main BnetzA number plan - but shared with Ludwigshafen
// note of BnetzA, that starting number is sperating both cities: see https://www.bundesnetzagentur.de/SharedDocs/Downloads/DE/Sachgebiete/Telekommunikation/Unternehmen_Institutionen/Nummerierung/Rufnummern/ONVerzeichnisse/ONBVerzeichnis/Sonderregelungen0212_0621.pdf?__blob=publicationFile&v=1
"6215" | "Ludwigshafen" | true // see https://issuetracker.google.com/issues/338710341
"6216" | "Ludwigshafen" | true // see https://issuetracker.google.com/issues/338710341
"62195" | "Ludwigshafen" | true // see https://issuetracker.google.com/issues/338710341
"62196" | "Ludwigshafen" | true // see https://issuetracker.google.com/issues/338710341
"62199" | "Ludwigshafen" | true // see https://issuetracker.google.com/issues/338710341
"6220" | "Wilhelmsfeld" | false
"6221" | "Heidelberg" | false
"6222" | "Wiesloch" | false
Expand Down
3 changes: 2 additions & 1 deletion src/test/resources/arealabels/nationallabels/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"201": "Essen",
"202": "Wuppertal",
"603": "Duisburg",
"6041": "Bottrop"
"6041": "Bottrop",
"60412": "XXX"
}
]

0 comments on commit b61cf95

Please sign in to comment.