iOS: How to get the distance of multiple location from one location
<p>i am working on a project in which i have to show the distance of multiple locations from user's locations. locations are based on latitude and longitude.</p>

<p>i am using the following code to get the distance between two locations is shows nearly same distance </p>

<pre><code>CLLocation *locA = [[CLLocation alloc] initWithLatitude:28.6379 longitude: 77.2432];
CLLocation *locB = [[CLLocation alloc] initWithLatitude:28.6562 longitude:77.2410];

CLLocationDistance distance = [locA distanceFromLocation:locB];
NSLog(@"Distance is %f",distance);
float i  = distance/1000;
NSLog(@"distance between two places is %f KM", i);
</code></pre>

<p>but now i am struct to get the distance of multiple locations from my location: locaA.</p>

<p>for example i take NSarray for latitude and longitude as</p>

<pre><code> NSArray * latArray = [[NSArray alloc]initWithObjects:@"28.6129",@"28.6020",@"28.5244", nil];
 NSArray * longArray = [[NSArray alloc]initWithObjects:@"77.2295",@"77.2478",@"77.1855", nil];
</code></pre>

<p>Please help me to resolve it </p>

<p>Take locaA as user's location </p>