Skip to content

Commit

Permalink
add quarter to BR addresses, test - a first step to the work in PR #123
Browse files Browse the repository at this point in the history
  • Loading branch information
freyfogle committed Jan 9, 2025
1 parent 4da0545 commit f4dc8e4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conf/countries/worldwide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ BR:
address_template: |
{{{attention}}}
{{{house}}}
{{{road}}} {{{house_number}}}
{{{road}}} {{{house_number}}}{{#first}}, {{{quarter}}}{{/first}}
{{#first}} {{{suburb}}} || {{{city_district}}} || {{{village}}} || {{{hamlet}}}{{/first}}
{{#first}} {{{city}}} || {{{town}}} || {{{state_district}}} {{/first}} - {{#first}} {{{state_code}}} || {{{state}}} {{/first}}
{{{postcode}}}
Expand Down
21 changes: 19 additions & 2 deletions testcases/countries/br.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,22 @@ expected: |
Região Geográfica Intermediária de Picos - PI
64675-000
Brazil
---
description: Maranhão [+quarter] / -2.493246,-44.267475
components:
road: Av. dos Holandeses
house_number: 9
quarter: Quadra 33
suburb: Calhau
city: São Luís
state: Maranhão
state_code: MA
postcode: 65071-380
country_code: br
country: Brazil
expected: |
Av. dos Holandeses 9, Quadra 33
Calhau
São Luís - MA
65071-380
Brazil

0 comments on commit f4dc8e4

Please sign in to comment.