Hi,
The file names with 'way' in the name contain linestrings (later
down the file, just search for LINESTRING) as they are generated by
the osmosis replication tools.
The 'way' files also contain all the geometries of all referenced
points, that's why at the beginning there are POINT geometries.
What makes things a bit more complex is, that whether a linestring
is supposed to be a polygon depends on how the resource is tagged,
but its not part of the raw data.
Example dataset:
http://downloads.linkedgeodata.org/releases/2015-11-02/2015-11-02-AerialwayThing.way.sorted.nt.bz2
Best regards,
Claus