Page 1 of 1

Manoeuvres long and lat infos

Posted: Fri Feb 17, 2017 3:42 pm
by g.fiume
Is it possible to have the exact manoeuvres coordinates? I need long & lat infos about some kind of manoeuvres. I've tried to have this info reaching the correspondent node but in nodes struct I've only x-offset and y-offset.

Re: Manoeuvres long and lat infos

Posted: Fri Feb 17, 2017 3:53 pm
by Bernd Welter
Hi there,

just use the manoeuvres array:
each manoeuvre is linked to
  • int routeListSegmentIdx: The index of the corresponding RouteListSegment.

which is linked to firstPolyIdx = index of the segments first x,y-Coordinate
Best regards Bernd

Re: Manoeuvres long and lat infos

Posted: Sun Feb 19, 2017 9:38 am
by Bernd Welter
Hi there,

this should clarify what you have to do to get the coordinates of a manoeuvre:

Code: Select all

Route route = tour.route;
// determine the polygon points
PlainPoint[] arrPolygonPoints = route.polygon.lineString.wrappedPoints;
// identify the manoeuvre, e.g. the 1st one
RouteManoeuvre manoeuvre = route.wrappedManoeuvres[0];
// identify the manoeuvres segment
RouteListSegment segment = route.wrappedSegments[manoeuvre.routeListSegmentIdx];
// identify the segments polygon point
PlainPoint manoeuvrePoint = arrPolygonPoints[segment.firstPolyIdx];
Best regards
Bernd