diff --git a/README.md b/README.md index 61eab54..7dbf635 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ Options (with default values) street_number: false, route: false, locality: false, + sublocality: false, administrative_area_level_2: false, administrative_area_level_1: false, country: false, diff --git a/src/jquery.ui.addresspicker.js b/src/jquery.ui.addresspicker.js index 7f840d4..e81d781 100644 --- a/src/jquery.ui.addresspicker.js +++ b/src/jquery.ui.addresspicker.js @@ -34,10 +34,11 @@ street_number: false, route: false, locality: false, - administrative_area_level_2: false, + sublocality: false, + administrative_area_level_2: false, administrative_area_level_1: false, - country: false, - postal_code: false, + country: false, + postal_code: false, type: false }, @@ -117,10 +118,11 @@ this.street_number = $(this.options.elements.street_number); this.route = $(this.options.elements.route); this.locality = $(this.options.elements.locality); - this.administrative_area_level_2 = $(this.options.elements.administrative_area_level_2); - this.administrative_area_level_1 = $(this.options.elements.administrative_area_level_1); + this.sublocality = $(this.options.elements.sublocality); + this.administrative_area_level_2 = $(this.options.elements.administrative_area_level_2); + this.administrative_area_level_1 = $(this.options.elements.administrative_area_level_1); this.country = $(this.options.elements.country); - this.postal_code = $(this.options.elements.postal_code); + this.postal_code = $(this.options.elements.postal_code); this.type = $(this.options.elements.type); if (this.options.elements.map) { this.mapElement = $(this.options.elements.map); @@ -151,7 +153,7 @@ } }, - _addressParts: {street_number: null, route: null, locality: null, + _addressParts: {street_number: null, route: null, locality: null, sublocality: null, administrative_area_level_2: null, administrative_area_level_1: null, country: null, postal_code:null, type: null},