public static class CrossingWays.ExtendedSegment extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
coastline
The coastline type
|
private String |
highway
The highway type
|
private String |
layer
The layer
|
private String |
level
The level, only considered for indoor highways
|
private Node |
n1 |
private Node |
n2 |
private String |
railway
The railway type
|
private String |
waterway
The waterway type
|
private WaySegment |
ws |
Constructor and Description |
---|
ExtendedSegment(WaySegment ws,
String layer,
String highway,
String railway,
boolean coastline,
String waterway,
String level)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
intersects(CrossingWays.ExtendedSegment s2)
Checks whether this segment crosses other segment
|
private final WaySegment ws
private final boolean coastline
public ExtendedSegment(WaySegment ws, String layer, String highway, String railway, boolean coastline, String waterway, String level)
ws
- The way segmentlayer
- The layer of the way this segment is inhighway
- The highway type of the way this segment is inrailway
- The railway type of the way this segment is incoastline
- The coastline flag of the way the segment is inwaterway
- The waterway type of the way this segment is inlevel
- The level of the way this segment is inpublic boolean intersects(CrossingWays.ExtendedSegment s2)
s2
- The other segment