package geo // Interval is an inclusive index range [Start, End] over position data, used // to refer to a stretch of a route by point indexes. type Interval struct { Start, End int } // NewInterval returns an Interval with the given start and end indexes. func NewInterval(start, end int) Interval { return Interval{ Start: start, End: end, } }