OSM tags indicate if a closed way should be treated as a polygon or linestring
npm install osm-polygon-features

see also--------
* https://github.com/osmlab/id-area-keys