diff --git a/lib/geocoder/heregeocoder.js b/lib/geocoder/heregeocoder.js index 600981cf..be211dd8 100644 --- a/lib/geocoder/heregeocoder.js +++ b/lib/geocoder/heregeocoder.js @@ -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, diff --git a/test/geocoder/heregeocoder.test.js b/test/geocoder/heregeocoder.test.js index 989af151..ba95252a 100644 --- a/test/geocoder/heregeocoder.test.js +++ b/test/geocoder/heregeocoder.test.js @@ -262,6 +262,7 @@ country: 'Deutschland', countryCode: 'DE', state: 'Berlin', + stateCode: 'Berlin', county: 'Berlin', city: 'Berlin', zipcode: '14195', @@ -461,6 +462,7 @@ country: 'United States', countryCode: 'US', state: 'New York', + stateCode: 'NY', county: 'Kings', city: 'Brooklyn', zipcode: '11211',