How to find every point [ coordinates ] between two geolocation coordinates?

元气小坏坏 提交于 2019-12-08 11:35:32

问题


Leaflet map

How i get geo-coordinates( i.e latitude,longitude ) on every 1km/2km/(n)Km between two geolocation points. Image above for reference.


回答1:


The "right way" to do this is to use geographiclib to fetch the azimuth and angular distance between the points; then fetch intermediate points by keeping the azimuth but specifying a different angular distance.

Geographiclib is also able to calculate a point given an initial point, an azimuth, and a distance in meters.

I suggest you first do a bit of research on what a "great circle" is, as well as the direct and inverse geodetic problems.



来源:https://stackoverflow.com/questions/37096257/how-to-find-every-point-coordinates-between-two-geolocation-coordinates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!