From 1a62d67be7e7170b0bfc1c45fbfcb0f3b4582a4b Mon Sep 17 00:00:00 2001 From: Al Date: Sat, 27 Aug 2016 01:37:32 -0400 Subject: [PATCH] [openaddresses] adding Puerto Rico (listed under US but anything with an ISO-3166 code is treated as a country in libpostal). Adding neighborhoods globally where we have them --- resources/parser/data_sets/openaddresses.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/resources/parser/data_sets/openaddresses.yaml b/resources/parser/data_sets/openaddresses.yaml index f62ccef9..238b03e3 100644 --- a/resources/parser/data_sets/openaddresses.yaml +++ b/resources/parser/data_sets/openaddresses.yaml @@ -60,7 +60,7 @@ global: # Turned off by default to avoid performance penalty for reverse geocoding add_osm_boundaries: false - add_osm_neighborhoods: false + add_osm_neighborhoods: true # Units have strong restrictions, have to be a number or hyphenated number non_numeric_units: false @@ -90,9 +90,9 @@ countries: language: fr - filename: brussels-nl.csv language: nl + us: cldr_country_probability: 0.05 - add_osm_neighborhoods: true ignore_fields_containing: city: - "\\bcounty\\b" @@ -1280,6 +1280,13 @@ countries: - filename: venango.csv - filename: wayne.csv + pr: + # Don't add state=PR, Puerto Rico is treated as a country in libpostal + cldr_country_probability: 1.0 + language: es + files: + - filename: statewide.csv + ri: add: state: RI