Skip to Content
Node

Node

About Node

Tips

read geojson file and serving through the express

router.get('/geo', async (req, res) => { res.setHeader('Content-Type', 'application/json'); return fs.createReadStream(__dirname + '/mygeojson.geojson').pipe(res); })
Last updated on