Functions to turn a successful request into data - either polygons, routes or times.
catchBadResponse(response)processResponse(response, service)
processPolygons(payload)
getRouteFeatures(route)
processRoutes(payload)
processTimes(payload)
A response object from callTargomoAPI
.
The Targomo API service being called - polygon, route or time.
The httr::content
of the response.
A single element of the returned routes list.