revrt.routing.base.RouteResult#

class RouteResult(metadata: dict, summary: dict, attributes: dict, options: dict, geometry: object = None)[source]#

Bases: object

Structured route result with explicit routing-option ownership

Methods

option_record(option)

Flattened record for one companion-output row

primary_record()

Flattened record for the primary route output

Attributes

geometry

Geometry object representing the route, if available

metadata

Dictionary containing metadata for the route result

summary

Dictionary containing summary metrics for the route result

attributes

Dictionary containing shared route attributes

options

Dictionary containing routing options and their results

metadata: dict#

Dictionary containing metadata for the route result

summary: dict#

Dictionary containing summary metrics for the route result

attributes: dict#

Dictionary containing shared route attributes

options: dict#

Dictionary containing routing options and their results

geometry: object = None#

Geometry object representing the route, if available

primary_record()[source]#

Flattened record for the primary route output

Returns:

dict – Flattened record for the primary route output.

option_record(option)[source]#

Flattened record for one companion-output row

Parameters:

option (str) – The routing option for which to generate the companion-output row.

Returns:

dict – Flattened record for the specified routing option.