hello forum,
i want to find midvertex of my route someone on forum told me to use GetPointOnline method and pass 50 % of the route to get midvertex but unfortunately it doesnot give mid veretx i have caluclated route length and then split my route but splitted lines doesnot have equal length.
my code of midveretx as follow:
midpoint = routingResult.Route.GetPointOnALine(StartingPoint.FirstPoint, halflength , GeographyUnit.DecimalDegree, DistanceUnit.Meter);
midpoint = routingResult.Route.GetPointOnALine(StartingPoint.LastPoint, 50);
i have used both methods to find mid vertex
in first method i have calculted route length and divided it by 2 to get halflength
in second i have passed 50% of the route
Kindly tell me which method i would use to find midvertex of my route.