zuloloxi / gmlibrary

Automatically exported from code.google.com/p/gmlibrary
0 stars 1 forks source link

GMDirection Waypoint order #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Using direction[0].route[0].Waypointorder[j]

What is the expected output? What do you see instead?
ex.: [2,1,0] or [1,0,2] The output is [-1,-1,-1]

What version of the product are you using? On what operating system? IE
Version?
gmlib 1.3.0, os win7, rad studio xe 6

Please provide any additional information below and/or a demo program to
reproduce the error.

the solution is changing the gmdirection to
"
function TDirectionsRoute.GetWaypointOrder(Index: Integer): Integer;
begin
  Result := -1;
  if FWaypointOrder.Count >= Index then
    Result := StrToInt(FWaypointOrder[Index]);
end;

"

Original issue reported on code.google.com by Bartosz....@gmail.com on 27 Aug 2014 at 12:19

GoogleCodeExporter commented 9 years ago
Fixed in new release.

Thanks

Original comment by cadet...@gmail.com on 28 Aug 2014 at 10:02