Learn R Programming

osrmr (version 0.1.36)

server_address: 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.

Description

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.

Usage

server_address(use_localhost)

Arguments

use_localhost

A logical, indicating whether to use the localhost or not.

Value

character, the address of an OSRM server

Examples

Run this code
# NOT RUN {
osrmr:::server_address(TRUE)
# [1] "http://localhost:5000"
osrmr:::server_address(FALSE)
# [1] "http://router.project-osrm.org"
# }

Run the code above in your browser using DataLab