make_request {osrmr} | R Documentation |
Run one server request for OSRM (online- or localhost)
Description
In order to fail gracefully, this function handles errors and warnings if the asked server (online- or localhost) doesn't work properly. In this case the error message is returned and connections are closed using base::closeAllConnections().
Usage
make_request(request)
Arguments
request |
A character |
Details
If the asked server doesn't react within 1 second, a warning is thrown using R.utils::withTimeout(..., timeout = 1)
Value
A list. The dimension of the list depends on the request and wether the server reacted properly or not.
[Package osrmr version 0.1.36 Index]