Skip to main content

Routing

Valhalla online and offline, route and map-match requests. Created with kind routing.

TypeClass
"multi-valhalla-offline"MultiValhallaOfflineRoutingService
"valhalla-offline"ValhallaOfflineRoutingService
"valhalla-online"ValhallaOnlineRoutingService
"request"hand-written factory
"match-request"hand-written factory

"multi-valhalla-offline" — MultiValhallaOfflineRoutingService

{"type": "multi-valhalla-offline"}
KeyTypeAlways requiredNotes

Inherited from RoutingService:

PropertyTypeAccessDescription
profilestringread/write
MethodArgumentsReturns
adddatabase: stringvoid
addLocalekey: string, json: stringvoid
calculateRouterequest: handleobject
matchRouterequest: handleobject
removedatabase: stringbool
setConfigurationParameterparam: string, value: jsonvoid

"valhalla-offline" — ValhallaOfflineRoutingService

{"type": "valhalla-offline", "path":}
KeyTypeAlways requiredNotes
pathstringyes

Inherited from RoutingService:

PropertyTypeAccessDescription
profilestringread/write
MethodArgumentsReturns
calculateRouterequest: handleobject
matchRouterequest: handleobject

"valhalla-online" — ValhallaOnlineRoutingService

{"type": "valhalla-online", "apiKey":}
{"type": "valhalla-online"}
KeyTypeAlways requiredNotes
apiKeystringno
PropertyTypeAccessDescription
HTTPHeadersstruct std::map<std::string, std::string>read/writeReturns the current set of HTTP headers used. Initially this set is empty and can be changed with setHTTPHeaders.
customServiceURLstringread/writeReturns the custom backend service URL.
timeoutintegerread/writeReturns the current timeout value.

Inherited from RoutingService:

PropertyTypeAccessDescription
profilestringread/write
MethodArgumentsReturns
calculateRouterequest: handleobject
matchRouterequest: handleobject

"request"

A route request.

KeyTypeNotes
pointspositionsthe waypoints, in order
projectionstringtheir projection, by name

"match-request"

A map-matching request.

KeyTypeNotes
pointspositionsthe measured points
projectionstringtheir projection, by name
accuracynumbermetres

Base classes

Not constructed directly. Their properties are reachable on every object above that derives from them.

RouteMatchingRequest

PropertyTypeAccessDescription
accuracynumberread-onlyReturns the accuracy of the points in the request.
pointsstruct std::vector<massif::MapPos>read-onlyReturns the measured points of the request.
projectionobject std::shared_ptr<massif::Projection>read-onlyReturns the projection of the points in the request.
MethodArgumentsReturns
setCustomParametername: string, value: jsonvoid

RoutingRequest

PropertyTypeAccessDescription
paramsstringread/writeReturns the custom parameter value of the request.
pointsstruct std::vector<massif::MapPos>read-onlyReturns the point list of the request.
projectionobject std::shared_ptr<massif::Projection>read-onlyReturns the projection of the points in the request.
MethodArgumentsReturns
setCustomParametername: string, value: jsonvoid

RoutingService

PropertyTypeAccessDescription
profilestringread/write
MethodArgumentsReturns
calculateRouterequest: handleobject
matchRouterequest: handleobject