createRequestBody: Create Request Body

Description Usage Arguments Value

View source: R/API.R

Description

Function to create a request body using the sources and options given.

Usage

1
createRequestBody(service, sources = NULL, targets = NULL, options)

Arguments

service

The Targomo Service to create a body for - 'polygon', 'time', 'route'.

sources

A processed sources object to pass to the API.

targets

A processed targets object (optional).

options

A processed options list.

Value

A JSON request body to be POST-ed to the API


cwthom/TargomoR documentation built on Dec. 24, 2019, 7:02 p.m.