This would convert the returned geojson to a string, which allows it to be saved via Node.js' fileSystem API. Notable Example: census({vintage:'2017',geoHierarchy:{state:'51',county:'*',},geoResolution:'500k',// required},(err,res)=>console.log(res)) ...
The Census Blocks Data product contains an area database with 8,145,877 Census Blocks for the 50 states, Washington DC, Puerto Rico, and the U.S. territories. Available File Formats: Available for the latest version of Maptitude and TransCAD Available for other applications. Contact us to...
Example: Saving the file locally in Node.js using fs RETURN TYPE: JSON STRING import fs from 'fs' census( { vintage: 2017, geoHierarchy: { 'metropolitan statistical area/micropolitan statistical area': '*', }, geoResolution: '500k', // required }, (err, res) => { fs.writeFile('....