powered by
Convert json result of OSRM routing query to SpatialLinesDataFrame
viaroute2sldf(osrmresult)
Single character string or character vector containing encoded json result(s) of OSRM routing queries.
Converts the result of a (successful) OSRM routing query and returns a SpatialLinesDataFrame containing the route, route summary and instructions.
# NOT RUN { viaroute2sldf( viaroute(startlat = 52.503033, startlng = 13.420526, endlat = 52.516582, endlng = 13.429290) ) # }
Run the code above in your browser using DataLab