-2

In my app I have to show the route between current Location and specified client Location using Map kit framework.

Amar
  • 13,202
  • 7
  • 53
  • 71
Anupama
  • 373
  • 2
  • 3
  • 17
  • I tried but not working for me – Anupama Feb 07 '14 at 12:55
  • Can you show your code and tell us what is not working in it? – Amar Feb 07 '14 at 12:56
  • locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.distanceFilter = kCLDistanceFilterNone; // whenever we move locationManager.desiredAccuracy = kCLLocationAccuracyHundredMeters; // 100 m [locationManager startUpdatingLocation]; – Anupama Feb 07 '14 at 13:03
  • How can i print the current location longitude and Lattitude in NSLog using this code – Anupama Feb 07 '14 at 13:05
  • Have you implemented the `CLLocationManager` delegate methods? That will give you the current location (or change in location). – Amar Feb 07 '14 at 13:06
  • let us [continue this discussion in chat](http://chat.stackoverflow.com/rooms/47021/discussion-between-anupama-and-amar) – Anupama Feb 07 '14 at 13:12

1 Answers1

1

Using Google Maps..

We can have route using below code

NSString* url = [NSString stringWithFormat: @"http://maps.google.com/maps?//saddr=Current+Location&daddr=42.889,-77.2803"];
        [[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];

Hope it helps..

Vidhyanand
  • 993
  • 10
  • 21