From 68dfd7eef4414dd0475ffab6f51a776e13fc7b7b Mon Sep 17 00:00:00 2001 From: Coroliov Oleg <1880059+ruscon@users.noreply.github.com> Date: Fri, 15 Feb 2019 01:45:55 +0200 Subject: [PATCH] HERE provider: add stateCode property --- lib/geocoder/heregeocoder.js | 1 + test/geocoder/heregeocoder.test.js | 2 ++ 2 files changed, 3 insertions(+) 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',