# OsmWay class

Namespace: [Grasshopper2.FileTypes.OpenStreetMap](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.filetypes.openstreetmap.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class OsmWay
```

Immutable OSM way.

## Properties

- [Entity](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/entity.md): Gets the entity represented by this way.
- [FirstNode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/firstnode.md): Gets the first node id.
- [Id](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/id.md): Gets the Id for this node.
- [IsArea](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/isarea.md): Gets whether this way represents an area.
- [IsClosed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/isclosed.md): Gets whether this way has closed topology. Closed ways start and end with the same node id.
- [LastNode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/lastnode.md): Gets the last node id.
- [NodeCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/nodecount.md): Gets the number of nodes for this way.
- [Nodes](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/nodes.md): Enumerates over all nodes.
- [TagCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/tagcount.md): Gets the number of tags stored on this way.
- [Tags](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/tags.md): Enumerate all the tags associated with this way.

## Methods

- [Merge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/merge.md): (static) Merge two ways.
- [ParseXmlNode](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/parsexmlnode.md): (static) Parse an xml node representing an OSM way.
- [RemoveTags](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/removetags.md): Remove all tags that match the set.
- [ToString](https://developer.rhino3d.com/api/gh2/type/grasshopper2.filetypes.openstreetmap.osmway/tostring.md): Gets a description of this way.
