Skip to content

Commit

Permalink
HERE provider: add stateCode property
Browse files Browse the repository at this point in the history
  • Loading branch information
ruscon committed Feb 14, 2019
1 parent 085f39d commit 0972067
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/geocoder/heregeocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ HereGeocoder.prototype._formatResult = function (result) {
country: null,
countryCode: address.Country || null,
state: address.State || null,
stateCode: address.State || null,
county: address.County || null,
city: address.City || null,
zipcode: address.PostalCode || null,
Expand Down
2 changes: 2 additions & 0 deletions test/geocoder/heregeocoder.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@
country: 'Deutschland',
countryCode: 'DE',
state: 'Berlin',
stateCode: 'Berlin',
county: 'Berlin',
city: 'Berlin',
zipcode: '14195',
Expand Down Expand Up @@ -461,6 +462,7 @@
country: 'United States',
countryCode: 'US',
state: 'New York',
stateCode: 'NY',
county: 'Kings',
city: 'Brooklyn',
zipcode: '11211',
Expand Down

0 comments on commit 0972067

Please sign in to comment.