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
Post a Comment