iphone - GPS coordinates in degrees to calculate distances -
On the iPhone, I get the position of the user in decimal degree, for example: latitude 39.470920 and longitude = -0.3731 9 2; This point A.
I need to make a line with a GPS coordinate, even in decimal decimals, point B. Then, calculate the distance between the line (perpendicular) to A and B and the other point C.
The problem I get confused with the values in degree. I want to do the results in meters. Need conversion? How would the final formula calculate like this?
- (CLLocationDistance) getDistanceFrom: (const CLLocation *) location
FirstLogro = 30.0; First light = 30.0; Second Langatti = 40.0; Second latitude = 40.0; CLLocation * firstLoc = [[CLLocation alloc] initWithLatitude: first light latitude: first-time]; CLLocation * secondLoc = [[CLLocation alloc] initWithLatitude: Second latitude longitude: Second lengeness]; Double distance dimensions = [from first lock distance: sec lock];
Comments
Post a Comment