Calculate GPS coordinates to form a radius of given size

后端 未结 3 2034
眼角桃花
眼角桃花 2020-12-28 22:13

I\'ve come up with a method that takes a coordinate and a range (in miles) and return a list of coordinates that form a circle around the origin. I seem to have made some p

3条回答
  •  情话喂你
    2020-12-28 22:59

    have a look at this (includes example code): http://www.movable-type.co.uk/scripts/latlong.html

    the "Spherical Law of Cosines" gives you the distance between two coordinates. it should be possible to modify this to give you the coordinates around a specified center and a specified radius (distance).

提交回复
热议问题