Current Latitude Longitude on Google Map

I am using below code to get current lat long in iOS 8.

.h

@interface DirectionViewController : UIViewController<CLLocationManagerDelegate,GMSMapViewDelegate>
{
    CLLocationManager *locationManager;
}
@property (nonatomic, retain) CLLocationManager *locationManager;

.m

@synthesize locationManager;

    locationManager = [[CLLocationManager alloc] init];
    locationManager.delegate = self;
    locationManager.desiredAccuracy = kCLLocationAccuracyBest;
    locationManager.distanceFilter = kCLDistanceFilterNone;
    [locationManager startUpdatingLocation];
    CLLocation *location = [locationManager location];
    // Configure the new event with information from the location
    CLLocationCoordinate2D coordinate = [location coordinate];
    NSString *latitude = [NSString stringWithFormat:@"%f", coordinate.latitude];
    NSString *longitude = [NSString stringWithFormat:@"%f", coordinate.longitude];
    NSLog(@"dLatitude : %@", latitude);
    NSLog(@"dLongitude : %@",longitude);

But here, I am getting 0.00000 value for both latitude and longitude.
Can anybody help me here. How to get current lat long in iOS 8?

Thanks in advance!


Download current.latitude.longitude.on.google.map.zip
Direct Link


Download


Download current.latitude.longitude.on.google.map.zip
Mediafire


Download


Download current.latitude.longitude.on.google.map.zip
KeepFile


Download


Download current.latitude.longitude.on.google.map.zip
Filerio


Download


Download current.latitude.longitude.on.google.map.zip
Hulkload


Download