diff --git a/routes/geojson.js b/routes/geojson.js index 257f0dc..306f010 100644 --- a/routes/geojson.js +++ b/routes/geojson.js @@ -385,7 +385,7 @@ function array_unshift(array) { var db = req.query.db || 'acs1620'; //set default for schema if it is missing var schema = req.query.schema || function(){ - if(db==='acs1721' || db==='acs1620' || db==='acs1519' || db==='acs1418' || db==='acs1317' || db==='acs1216' || db==='acs1115' || db==='acs1014' || db==='acs0913' || db==='acs0812' || db==='acs0711' || db==='acs0610' || db==='c2010' || db==='c2020'){return 'data';} + if(db==='acs1822' || db==='acs1721' || db==='acs1620' || db==='acs1519' || db==='acs1418' || db==='acs1317' || db==='acs1216' || db==='acs1115' || db==='acs1014' || db==='acs0913' || db==='acs0812' || db==='acs0711' || db==='acs0610' || db==='c2010' || db==='c2020'){return 'data';} if(db==='c2000' || db==='c1990' || db==='c1980'){return 'sf1';} return ''; //no valid database - will deal with later }(); @@ -398,6 +398,7 @@ var schema = req.query.schema || function(){ //carto or tiger or nhgis var geo=""; //for now, geo will be set as a default + if(db==='acs1822'){geo='carto';} if(db==='acs1721'){geo='carto';} if(db==='acs1620'){geo='carto';} if(db==='acs1519'){geo='carto';} @@ -430,7 +431,7 @@ var geodesc=""; //for now, geodesc will be set based upon sumlev //if database is acs, check to see if moe option is flagged var moe='no'; -if(db=='acs0610' || db=='acs0711' || db=='acs0812' || db=='acs0913' || db=='acs1014' || db=='acs1115' || db=='acs1216' || db=='acs1317' || db=='acs1418' || db=='acs1519' || db=='acs1620' || db=='acs1721'){ +if(db=='acs0610' || db=='acs0711' || db=='acs0812' || db=='acs0913' || db=='acs1014' || db=='acs1115' || db=='acs1216' || db=='acs1317' || db=='acs1418' || db=='acs1519' || db=='acs1620' || db=='acs1721' || db=='acs1822'){ if (req.query.moe){ moe=req.query.moe; }