Skip to main content

Posts

Showing posts with the label mkmapview

GPS and draw MapRout in iphone

I have a latitude and longitude that is fixed, so I used that and got the point in mapview with pin. Now I want the current location and draw route, so I think using gps I get the latitude and longitude. Using this location(latitude & longitude) I have to draw a route with my fixed value (latitude & longitude). How is it possible..? Is this is the right way to do it? ?How to draw the route with two point..? I have used the delegate method but it doesn't call, - (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation { [manager stopUpdatingHeading]; NSLog(@"latitude=%f",newLocation.coordinate.latitude); NSLog(@"longitude=%f",newLocation.coordinate.longitude); }