There isn't a concept of lines vs areas in OSM, they're open and closed ways. If you need to you can set area=yes on a closed way, but usually other tags will indicate whether it's an area or just a line that loops on itself. i.e. landuse tags will indicate an area, highway usually won't.