I want to draw route in map, for this I am storing latitude and longitude in my server. when this view opens it fetches all lat and long from server and plots it in mapView. Suppose server gets new lat and long this should show in mapView without closing this view, means map has plotted route if it gets new lat and long this route should continue from last point.
Asked
Active
Viewed 3,486 times
2 Answers
1
We wrote a category to mapKit that allow you to show route over the map :
http://code.google.com/p/octomapkit/
Very easy to use :
[youMap addRouteFrom:startCoord to:endCoord zommed:shouldZoom]
Hope this helps, Vincent

vdaubry
- 11,369
- 7
- 54
- 76
-
thanks for ur reply.i have used same code to draw for first time,when server gets new lat,lon it will fetch these new coordinates and draw a route from last point without loosing last drawn route in map.Help!!!1 – xcodemaddy Feb 02 '11 at 11:29
1
Apple supplied a demo application called Breadcrumb with the 2010 WWDC Developer videos that does exactly this. You can get the sample code from here: http://developer.apple.com/videos/wwdc/2010/

Faraz Haider
- 128
- 9