我正在使用OSRM(OpenStreetMap路由机)的实例来评估来自不同点的距离和时间.使用API,我可以检索我想要的信息,尤其是作为折线的真实路线.
直到今天,我已经在起点和终点之间绘制了直线.
segments(
lon_patient,lat_patient,lon_lieu,lat_lieu,col = transp_time,lwd = 3
)
Run Code Online (Sandbox Code Playgroud)
现在我想绘制折线.但它是编码的(https://github.com/Project-OSRM/osrm-backend/wiki/Server-api#response-2).我怎么画它?
谢谢!