none
Animating with snap to road RRS feed

  • Question

  • Hello.

    I am creating an app that collects gps data and needs to show an animated vehicle on a map.  I am able to do the path animation between multiple points, but this does not account for curves in the road and corners.  Basically I need these paths to snap to the road.  Does anyone have any code examples or can explain to me how this is done?

    Thanks,

    Eric

    Thursday, May 14, 2015 6:30 PM

Answers

  • You could snap the GPS data you have to the roads by passing them in as waypoints in a route request using the REST routing service. You can pass up to 25 waypoints into a request. This will then return an array of coordinates that areon the road.

    http://rbrundritt.wordpress.com

    Thursday, May 14, 2015 11:36 PM