iphone - find road distance between current location and specified location -


i wants calculate road distance between current location , other location. (xml/json google direction or anyother) api use (if any) or right way this.?

before try following. wants road distance

thanks.

cllocation *location1 = [[cllocation alloc] initwithlatitude:lat1 longitude:long1];  cllocation *location2 = [[cllocation alloc] initwithlatitude:lat2 longitude:long2];  nslog(@"distance in meters: %f", [location1 getdistancefrom:location2]); 

use google direction json api have provide intital location detail , final location. inside leg array of json distance dictionary in have distance between 2 locations.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -