server_address {osrmr}R Documentation

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

osrmr:::server_address(TRUE)
# [1] "http://localhost:5000"
osrmr:::server_address(FALSE)
# [1] "http://router.project-osrm.org"

[Package osrmr version 0.1.36 Index]