Description Usage Arguments Value Examples
server_address() returns the URL address of the OSRM localhost or OSRM webserver, depending on the value of the variable 'use_localhost'. This is an internal function. The address is used as a part of a OSRM server-request.
1 | server_address(use_localhost)
|
use_localhost |
A logical, indicating whether to use the localhost or not. |
character, the address of an OSRM server
1 2 3 4 | osrmr:::server_address(TRUE)
# [1] "http://localhost:5000"
osrmr:::server_address(FALSE)
# [1] "http://router.project-osrm.org"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.