Retrieve the OSRM Profile for a Running Server
Source:R/osrm_server_registry.R
osrm_get_server_profile.RdAttempts to determine the profile (e.g., "car", "bike", "foot") used by an OSRM server. It follows a priority list:
Checks the active server registry for the given port or ID.
Checks for a
dataset.meta.jsonfile in the directory of the graph file.Checks the graph filename for hints (e.g.
berlin-car.osrm).Falls back to
getOption("osrm.profile").
Arguments
- input_osrm
Optional. Can be an OSRM job process (an
osrm_serverobject inheriting fromprocessx::process), a path string, or NULL.- port
Optional integer. The port of the server.