Browse Source

removed alpha3 set

pull/899/head
Stephen Hess 8 years ago
parent
commit
f721d68e9c
  1. 4
      controller/coarse_reverse.js
  2. 1
      test/unit/controller/coarse_reverse.js

4
controller/coarse_reverse.js

@ -81,10 +81,6 @@ function synthesizeDoc(results) {
}
if (_.has(results, 'country[0].abbr')) {
doc.setAlpha3(results.country[0].abbr);
}
// assign the administrative hierarchy
Object.keys(results).forEach((layer) => {
if (results[layer][0].hasOwnProperty('abbr')) {

1
test/unit/controller/coarse_reverse.js

@ -211,7 +211,6 @@ module.exports.tests.success_conditions = (test, common) => {
country_id: ['100'],
country_a: ['xyz']
},
alpha3: 'XYZ',
center_point: {
lat: 12.121212,
lon: 21.212121

Loading…
Cancel
Save