I have journeys with up to 50 way-points that I'd like to plot using the HERE API, one journey per map. The maps look great in general, but in some cases the route deviates wildly from the the arc of the journey, for a few points, before resuming.
As an example, here is a HERE API map, and a non-snap-to-route map from GPS Visualizer, both from the same data. You can see the HERE route hugs the main roads but has a diversion or two, whereas the other plots point-to-point naively and has no diversion. The raw request (sans app-key and the last few way-points) is here
The guess is that GPS drift has moved the way-point slightly off the main road and onto a minor road and the routing algorithm taking a necessary diversion to get back to the next point.
Please, would anyone be able to suggest an approach, or parameters I can tweak, to minimise the number or severity of the deviations?
Many thanks!
Nikki
The Map Image Routing API calculates the route based on the provided waypoints. So the waypoints you provide have direct influence on the route calculated without much optimisation. It may be necessary to first compute the most probable route given your GPX trace (waypoints) using the Fleet Telematics Route Matching API before drawing the response (the matched/snapped route) on the map.