Browse Source

exposed `macrocounty` and `macroregion` fields in geojsonify

pull/461/head
Stephen Hess 9 years ago
parent
commit
77f396d5cb
  1. 6
      helper/geojsonify.js
  2. 24
      test/unit/helper/geojsonify.js

6
helper/geojsonify.js

@ -16,9 +16,15 @@ var DETAILS_PROPS = [
'country', 'country',
'country_id', 'country_id',
'country_a', 'country_a',
'macroregion',
'macroregion_id',
'macroregion_a',
'region', 'region',
'region_id', 'region_id',
'region_a', 'region_a',
'macrocounty',
'macrocounty_id',
'macrocounty_a',
'county', 'county',
'county_id', 'county_id',
'county_a', 'county_a',

24
test/unit/helper/geojsonify.js

@ -246,6 +246,15 @@ module.exports.tests.search = function(test, common) {
'country_a': [ 'country_a': [
'USA' 'USA'
], ],
'macroregion': [
'MacroRegion Name'
],
'macroregion_id': [
'MacroRegion Id'
],
'macroregion_a': [
'MacroRegion Abbreviation'
],
'region': [ 'region': [
'New York' 'New York'
], ],
@ -255,6 +264,15 @@ module.exports.tests.search = function(test, common) {
'region_a': [ 'region_a': [
'NY' 'NY'
], ],
'macrocounty': [
'MacroCounty Name'
],
'macrocounty_id': [
'MacroCounty Id'
],
'macrocounty_a': [
'MacroCounty Abbreviation'
],
'county': [ 'county': [
'Kings County' 'Kings County'
], ],
@ -300,9 +318,15 @@ module.exports.tests.search = function(test, common) {
'country': 'United States', 'country': 'United States',
'country_id': '85633793', 'country_id': '85633793',
'country_a': 'USA', 'country_a': 'USA',
'macroregion': 'MacroRegion Name',
'macroregion_id': 'MacroRegion Id',
'macroregion_a': 'MacroRegion Abbreviation',
'region': 'New York', 'region': 'New York',
'region_id': '85688543', 'region_id': '85688543',
'region_a': 'NY', 'region_a': 'NY',
'macrocounty': 'MacroCounty Name',
'macrocounty_id': 'MacroCounty Id',
'macrocounty_a': 'MacroCounty Abbreviation',
'county': 'Kings County', 'county': 'Kings County',
'county_id': '102082361', 'county_id': '102082361',
'localadmin': 'Brooklyn', 'localadmin': 'Brooklyn',

Loading…
Cancel
Save