For point-to-point routing, Valhalla's API provides a route shapefile in a special ASCII-encoded format. This function takes an encoded string, decodes it, and returns the lat/lon coordinates as a tibble.
An encoded shapefile in ASCII format from Valhalla's API.
To map the results, see also
A tibble containing point locations in
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.