ru.dgis.sdk.routing.SegmentGeoPoint | Android SDK | 2GIS Documentation

SegmentGeoPoint

Describes a geographic point on a segment and the direction of the segment. Route geometry is a sequence of points that form segments (segments) in pairs. In this case, in all functions that work with the route geometry, it is considered that the first point from the pair forming the segment is included in this segment, but the second one is not: [point_1, point_2),[point_2, point_3),...,[point_n-1, point_n)point_last. The last point forms with itself a segment of length zero. Thus, each route point belongs to exactly one segment. The direction of the point_last point is undefined.

SegmentGeoPoint(point: GeoPoint, bearing: Bearing)

Describes a geographic point on a segment and the direction of the segment. Route geometry is a sequence of points that form segments (segments) in pairs. In this case, in all functions that work with the route geometry, it is considered that the first point from the pair forming the segment is included in this segment, but the second one is not: [point_1, point_2),[point_2, point_3),...,[point_n-1, point_n)point_last. The last point forms with itself a segment of length zero. Thus, each route point belongs to exactly one segment. The direction of the point_last point is undefined.

Parameters
point
bearing
Returns
Properties