Learn R Programming

TargomoR (version 0.2.0)

createRequestBody: Create Request Body

Description

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

Usage

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