matrixRaw

fun matrixRaw(requestJson: String): String

Run a sources_to_targets request supplied as JSON and return the raw response.

This is the escape hatch for request options MatrixRequest does not yet model, or a response format MatrixResponse cannot represent.

Return

The raw response body, in whichever format the request asked for.

Parameters

requestJson

A sources_to_targets request as JSON. See https://valhalla.github.io/valhalla/api/matrix/api-reference/

See also

Throws

if the Valhalla engine returns an error response.