ResultTask does not return the length of the directionGraphic in its text

417
1
05-11-2011 06:52 AM
MiriEshel
New Contributor III
Hi,

As far as I saw, the text of each AGSdirectionGraphic returned by the AGSRouteResult does not include the length of this segment. Therefore I'm using the Length method of AGSdirectionGraphic.
Is that the way to do it?

Thanks,
Miri
0 Kudos
1 Reply
NimeshJarecha
Esri Regular Contributor
The first and last AGSDirectionGraphic of the routeResult.directions is 0. All, other directions returns length. You can add following line in your nextBtnClicked and prevBtnClicked code to check the values.

NSLog(@"length: %.5f",self.currentDirectionGraphic.length);

Regards,
Nimesh
0 Kudos