在GPS点之间填充GPS点

在GPS点之间填充GPS点,gps,latitude-longitude,google-earth,geopy,Gps,Latitude Longitude,Google Earth,Geopy,给定两个GPS点,我想在两者之间填充更多的GPS点(在一条直线上)。我有很多代码,但仅仅问同一个问题就又长又复杂。我想知道是否有人在想什么工具 origin = [lat1, lon1] destination = [lat2, lon2] def fill_in (origin, destination) API call?? somthing that adds in more GPS points between the two return more poi

给定两个GPS点,我想在两者之间填充更多的GPS点(在一条直线上)。我有很多代码,但仅仅问同一个问题就又长又复杂。我想知道是否有人在想什么工具

origin = [lat1, lon1]
destination = [lat2, lon2]

def fill_in (origin, destination)

    API call??
    somthing that adds in more GPS points between the two

    return more points

谷歌“线性插值”。谢谢。它让我得到了我所需要的。