powered by
osrmTable(df, id, x, y)
# Load data data("com") # Travel time matrix distcom <- osrmTable(com[1:50,], id = "comm_id", x = "lon",y = "lat") # First 5 rows and columns distcom[1:5,1:5]
Run the code above in your browser using DataLab