Dataframes are necessary for the transformations needed to query the osrm servers.

transform_to_df(sf)

See also

osrm_table() for the main function