Although it's easy to find the shortest path between two points using NASolver
, sometimes NAClassLoader.Load
failed to map the points to the right road, NALocator
only considers the closest distance.
For example, sometimes we have to judge a point's matching positon according to vehicle's previous tracks, at this time, it will make some mistakes if the loader
maps the point to the closet road.
In the graph below, because point1 is on the green road, so point2 should also belongs to the green line but not the red ones. How can I tell the NALocator the right choice? Will NALocatorFeatureAgent
work in this condition?