getSegment

expect fun getSegment(): Segment

Get the segment geometry. Only valid if type is Segment.