make_request: Run one server request for OSRM (online- or localhost)

Description Usage Arguments Details Value

View source: R/server.R

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

1
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.


osrmr documentation built on May 31, 2021, 5:07 p.m.