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?



    Thursday, May 14, 2015 6:30 PM


  • 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.

    Thursday, May 14, 2015 11:36 PM