getting the distance between two location on iphone
<p>i am trying to calculate the distance between the statringpoint which hold the initial value of location and the newlocation using the following code but i am getting null in distance. can anyone help me out with this</p>

<pre><code>CLLocationDistance distance = [newLocation getDistanceFrom:startingPoint];
</code></pre>
