How to calculate location of the point (x,y) , that is far from point 1 (which has lat1 and lon1 coords) for distance d as shown in picture
Known parameters:
Point1 = [lat1,lon1],
Point2 = [lat2,lon2],
Distance = d, ( in meters )
Angle = α = atan( (lat2 - lat1) / (lon2 - lon1) )
Need to find: Destination Point: x and y value.
In one word, I need something like vice versa of this
CLLocation *location1;
CLLocation *location2;
double distance = [location1 distanceFromLocation:location2];
e.g. calculate location2 by given distance and angle.
What I've tried
double lat = location1.coordinate.latitude + distance * sin(alpha);
double lon = location1.coordinate.longitude + distance * cos(alpha);
But those values are wrong, because 1 latitude and 1 longitude not equal to 1 meters.