I\'m using R and library(osrm). I\'ve calculated a route using osrmRoute
myroute<-osrmRoute(src= c(lonx,laty), dst = c(lonx_destino, laty_destino), returnclass