Skip to main content

class.RoadModule

API > RoadModule

Class: RoadModule

Module for handling road spesific parametric data.

Extends

  • BaseModule

Constructors

constructor

new RoadModule(worker, parent): RoadModule

Parameters

ParameterType
workerMeasureWorker
parentMeasureView

Returns

RoadModule

Inherited from

BaseModule.constructor

Source

@novorender/measure/modules/base.ts:4

Properties

parent

readonly parent: MeasureView

Inherited from

BaseModule.parent

Source

@novorender/measure/modules/base.ts:4


worker

readonly worker: MeasureWorker

Inherited from

BaseModule.worker

Source

@novorender/measure/modules/base.ts:4

Methods

getCrossSections

getCrossSections(roadIds, profileNumber): Promise\< RoadCrossSection[] >

Get cross sections at a spesific profile in the road.

Parameters

ParameterTypeDescription
roadIdsstring[]Unqiue string id for each road, can be found in the data api
profileNumbernumberDistance along the center line where the cross section should be cut

Returns

Promise\< RoadCrossSection[] >

Source

@novorender/measure/modules/road/module.ts:32