View source: R/osrm_find_profile.R
| osrm_find_profile | R Documentation |
By default OSRM ships profiles for "car", "bike" and "foot" in a
profiles/ directory alongside the binaries. This function will try to
locate osrm-routed on the PATH, resolve symlinks, and look first for a
profiles/ directory next to the binary (as placed there by
osrm_install()). If that fails, it looks for sibling directories
share/osrm/profiles and share/osrm-backend/profiles. IF that fails, it
will try to fall back on /usr/local/share/osrm/profiles,
/usr/local/share/osrm-backend/profiles, /usr/share/osrm/profiles, and
/usr/share/osrm-backend/profiles.
osrm_find_profile(profile = "car.lua")
profile |
A single string, the name of the Lua profile file
(e.g. |
The normalized filesystem path to the profile.
if (identical(Sys.getenv("OSRM_EXAMPLES"), "true")) {
install_dir <- osrm_install(
version = "latest",
path_action = "session",
quiet = TRUE
)
osrm_find_profile("car.lua")
osrm_uninstall(
dest_dir = install_dir,
clear_path = TRUE,
force = TRUE,
quiet = TRUE
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.