Skip to content

Commit

Permalink
add archipelago as top level component
Browse files Browse the repository at this point in the history
  • Loading branch information
freyfogle committed Jan 12, 2021
1 parent 1157b86 commit 3437399
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conf/components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ name: region
---
name: island
---
name: archipelago
---
name: country
aliases:
- country_name
Expand Down
1 change: 1 addition & 0 deletions conf/countries/worldwide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ generic1: &generic1 |
{{{house}}}
{{{road}}} {{{house_number}}}
{{{postcode}}} {{#first}} {{{postal_city}}} || {{{town}}} || {{{city}}} || {{{village}}} || {{{municipality}}} || {{{county}}} || {{{state}}} {{/first}}
{{{archipelago}}}
{{{country}}}

# postcode after city
Expand Down
38 changes: 38 additions & 0 deletions testcases/pt.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
# Lisbon
description: 38.74547,-9.18519
components:
city: Lisbon
country: Portugal
country_code: pt
county: Lisboa
house_number: 11
postcode: 1500-203
road: Avenida Conselheiro Barjona de Freitas
suburb: Benfica
expected: |
Avenida Conselheiro Barjona de Freitas 11
1500-203 Lisbon
Portugal
---
# Guest house in the Azores
description: 37.74851,-25.60450
components:
archipelago: Azores
city: Ponta Delgada
city_district: Rosto do Cão (Livramento)
country: Portugal
country_code: pt
guest_house: Casa Do Populo
house_number: 1015
neighbourhood: Livramento
postcode: 9500-614
road: Rua Padre Domingos da Silva Costay
state_district: São Miguel
expected: |
Casa Do Populo
Rua Padre Domingos da Silva Costay 1015
9500-614 Ponta Delgada
Azores
Portugal

0 comments on commit 3437399

Please sign in to comment.