Skip to content

Commit

Permalink
DE: deal with case of house in small hamlet with no road
Browse files Browse the repository at this point in the history
  • Loading branch information
freyfogle committed Jan 30, 2024
1 parent 08df5bc commit d9176ce
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf/countries/worldwide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
generic1: &generic1 |
{{{attention}}}
{{{house}}}
{{{road}}} {{{house_number}}}
{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}
{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{hamlet}}} || {{{county}}} || {{{state}}} {{/first}}
{{{archipelago}}}
{{{country}}}
Expand Down Expand Up @@ -688,7 +688,7 @@ DE:
fallback_template: |
{{{attention}}}
{{{house}}}
{{{road}}} {{{house_number}}}
{{#first}} {{{road}}} || {{{place}}} || {{{hamlet}}} {{/first}} {{{house_number}}}
{{#first}} {{{suburb}}} || {{{city_district}}} || {{{neighbourhood}}} {{/first}}
{{#first}} {{{town}}} || {{{city}}} || {{{village}}} || {{{hamlet}}} || {{{municipality}}} || {{{county}}} {{/first}}
{{#first}} {{{state}}} || {{{state_district}}} {{/first}}
Expand Down
19 changes: 19 additions & 0 deletions testcases/countries/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -268,3 +268,22 @@ expected: |
Jablonskistraße 29A
10405 Berlin
Germany
---
#
description: house in hamlet with no road 48.474124, 10.017457
components:
city: Langenau
country: Deutschland
country_code: de
county: Alb-Donau-Kreis
hamlet: Witthau
house_number: 3
municipality: GVV Langenau
postcode: 89129
state: Baden-Württemberg
state_code: BW
town: Langenau
expected: |
Witthau 3
89129 Langenau
Deutschland

0 comments on commit d9176ce

Please sign in to comment.