iphone - Moving a CLLocation by x meters -
I have a CLLocation defined, and I want to take that point before x meters and south of y meters I am How can I get it?
There is a function that is close to what you are asking but it takes an effect and distance This is in my utilities geo class. You can pass latitude and longitude from your CLLocation and then create a new CLLocation from the resultant layout 2 and loan 2 which gives it:
/ * ------ ---- ---------------------------------------------- ---- ------------- * An initial latitude / lane point on the earth, in the distance (in meters) * and the effect, calculates the destination coordinates lat2 / lon2 * * All parameters in degree * ------------------------------------------- - ---------------------------- * / zero distortioned indegrad (double latte 1, double lawn 1, dub Distance Meter, double effect, double * Flat 2, Double * lon2); If you can not use it, take a look at the algorithm that was derived from it and you can modify it or some of those sites close to your needs It is possible.
Comments
Post a Comment