Geo Spacial Bounding Box Rectangle Calculation Error: Latitude Incorrect

后端 未结 3 862
南方客
南方客 2020-12-28 10:47

Can any trig or GPS experts help me out here? I\'m trying to create a geo-spacial bounding box (rectangle) calculation returning the maximum latitude and longitude using the

3条回答
  •  眼角桃花
    2020-12-28 11:41

    CLLocationCoordinate2D stores coordinates in degrees, but the trig functions you're using require radian units. If you convert to radians (multiply by M_PI/180, or 0.017453293f), it will probably work.

提交回复
热议问题