process: Process API responses

Description Usage Arguments

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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.


TargomoR documentation built on Dec. 7, 2019, 1:07 a.m.