Hi,
I dont think there is a 'snap to road' function. However it is pretty normal that some of the GPS positions appear not to be on a road. Some roads are not in the right position in Mappoint (most are right), and there is the GPS accuration.
On think you can do is
- check if you are on a road
- if not start a circle with a given radius, and check on the circumfence of the circle if there is road. Take each point on the circumfence the same distance of the radius.
- then increase radius and do the same. this until a given maximum of course.
As start radius and distance I shouls start with 5 meters.
The maximum can be depending on where you are. If the vehicle is in a city then streets can be very near to each other, do the maximum has to be smalll, because normally (depending on the application) it is better to not be on a road than to indicate it in a wrong road
