Skip to content

Commit

Permalink
feat: add postalcode to parent hierarchy
Browse files Browse the repository at this point in the history
  • Loading branch information
dianashk committed Feb 1, 2017
1 parent af35863 commit 4ff40c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Document.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,8 @@ Document.parentFields = [
'borough', 'borough_a', 'borough_id',
'locality', 'locality_a', 'locality_id',
'localadmin', 'localadmin_a', 'localadmin_id',
'neighbourhood', 'neighbourhood_a', 'neighbourhood_id'
'neighbourhood', 'neighbourhood_a', 'neighbourhood_id',
'postalcode', 'postalcode_a', 'postalcode_id'
];

// export
Expand Down
10 changes: 8 additions & 2 deletions test/serialize/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ module.exports.tests.minimal = function(test) {
'neighbourhood_id': [],
'region': [],
'region_a': [],
'region_id': []
'region_id': [],
'postalcode': [],
'postalcode_a': [],
'postalcode_id': []
},
'address_parts': {},
'category': [],
Expand Down Expand Up @@ -162,7 +165,10 @@ module.exports.tests.complete = function(test) {
'neighbourhood_id': ['2002'],
'region': [],
'region_a': [],
'region_id': []
'region_id': [],
'postalcode': [],
'postalcode_a': [],
'postalcode_id': []
},

// geography
Expand Down

0 comments on commit 4ff40c0

Please sign in to comment.