server_address: server_address() returns the URL address of the OSRM...

Description Usage Arguments Value Examples

View source: R/server.R

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

1
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

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

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