Skip to content

Commit 9ef3c2f

Browse files
committed
better fallback formatting / test case for Monaco
1 parent a1972d0 commit 9ef3c2f

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

conf/countries/worldwide.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1373,6 +1373,16 @@ MA:
13731373
# Monaco
13741374
MC:
13751375
address_template: *generic3
1376+
fallback_template: |
1377+
{{{attention}}}
1378+
{{{house}}}
1379+
{{{road}}} {{{house_number}}}
1380+
{{{place}}}
1381+
{{#first}} {{{neighbourhood}}} || {{{city_district}}} || {{{municipality}}} || {{{suburb}}}{{/first}}
1382+
{{{city}}}
1383+
{{{country}}}
1384+
postformat_replace:
1385+
- ["Monaco\nMonaco","Monaco"]
13761386

13771387
# Moldova
13781388
MD:

testcases/countries/mc.yaml

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,28 @@
22
---
33
description: Hotel in Monaco, 43.73917,7.42224
44
components:
5-
country: Monaco
6-
country_code: mc
7-
hotel: Novotel
8-
house_number: 16
9-
postcode: 98000
10-
road: Boulevard Princesse Charlotte
11-
suburb: Monte-Carlo
12-
town: Monaco
5+
country: Monaco
6+
country_code: mc
7+
hotel: Novotel
8+
house_number: 16
9+
postcode: 98000
10+
road: Boulevard Princesse Charlotte
11+
suburb: Monte-Carlo
12+
town: Monaco
1313
expected: |
1414
Novotel
1515
16 Boulevard Princesse Charlotte
1616
98000 Monaco
17+
---
18+
description: Monaco neighbourhood
19+
components:
20+
city: Monaco
21+
country: Monaco
22+
country_code: mc
23+
neighbourhood: Larvotto
24+
suburb: Monaco
25+
expected: |
26+
Larvotto
1727
Monaco
1828
1929

0 commit comments

Comments
 (0)