Skip to main content

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);

}




Comments

Popular posts from this blog

Wildcards in a hosts file

I want to setup my local development machine so that any requests for *.local are redirected to localhost . The idea is that as I develop multiple sites, I can just add vhosts to Apache called site1.local , site2.local etc, and have them all resolve to localhost , while Apache serves a different site accordingly.