Learn R Programming

azuremapsr (version 0.0.2)

POSTbody_builder_directions_json: Build JSON Parameter Body for Route Directions

Description

Constructs the JSON part of the request body containing routing parameters for the Azure Maps Route Directions API.

Usage

POSTbody_builder_directions_json(params, tz)

Value

A list of routing parameters, with values formatted and unboxed as required for the JSON request.

Arguments

params

A list of routing parameters, such as travelMode, routeType, departAt, etc.

tz

A string specifying the timezone for any date-time parameters.

Examples

Run this code
if (FALSE) {
params <- list(
  travelMode = "car",
  routeType = "fastest"
)
json_part <- POSTbody_builder_directions_json(params, "UTC")
}

Run the code above in your browser using DataLab