Learn R Programming

TargomoR (version 0.2.0)

process: Process API responses

Description

Functions to turn a successful request into data - either polygons, routes or times.

Usage

catchBadResponse(response)

processResponse(response, service)

processPolygons(payload)

getRouteFeatures(route)

processRoutes(payload)

processTimes(payload)

Arguments

response

A response object from callTargomoAPI.

service

The Targomo API service being called - polygon, route or time.

payload

The httr::content of the response.

route

A single element of the returned routes list.