Class TmcLocationReferenceCreators
LocationReferenceCreator
s factories to create Tmc location reference types
from Location Library data model specific representations.
param: adjacencyProvider Provides information about TMC location adjacency to
support creation of references with extent
> 1.
-
Constructor Summary
ConstructorsConstructorDescriptionTmcLocationReferenceCreators
(OptimizedMapLayers optimizedMap) TmcLocationReferenceCreators
(OptimizedMapLayers optimizedMap, TmcAdjacencyProvider adjacencyProvider) TmcLocationReferenceCreators
(TmcLayers tmcLayers) TmcLocationReferenceCreators
(TmcLayers tmcLayers, TmcAdjacencyProvider adjacencyProvider) TmcLocationReferenceCreators
(TmcLayers tmcLayers, scala.Option<TmcAdjacencyProvider> adjacencyProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic TmcLocationReferenceCreators
apply
(OptimizedMapLayers optimizedMap) static TmcLocationReferenceCreators
apply
(OptimizedMapLayers optimizedMap, TmcAdjacencyProvider adjacencyProvider) static TmcLocationReferenceCreators
static TmcLocationReferenceCreators
apply
(TmcLayers tmcLayers, TmcAdjacencyProvider adjacencyProvider) Generates a creator forExtendedTMCLocationReference
s.Generates a creator forPiecewiseTmcCoverage
.tmc()
Generates a creator for simpleTMCLocationReference
s.
-
Constructor Details
-
TmcLocationReferenceCreators
public TmcLocationReferenceCreators(TmcLayers tmcLayers, scala.Option<TmcAdjacencyProvider> adjacencyProvider) -
TmcLocationReferenceCreators
-
TmcLocationReferenceCreators
-
TmcLocationReferenceCreators
public TmcLocationReferenceCreators(OptimizedMapLayers optimizedMap, TmcAdjacencyProvider adjacencyProvider) -
TmcLocationReferenceCreators
-
-
Method Details
-
apply
public static TmcLocationReferenceCreators apply(TmcLayers tmcLayers, TmcAdjacencyProvider adjacencyProvider) -
apply
-
apply
public static TmcLocationReferenceCreators apply(OptimizedMapLayers optimizedMap, TmcAdjacencyProvider adjacencyProvider) -
apply
-
tmc
Generates a creator for simpleTMCLocationReference
s.This reference creator takes a
LinearLocation
and returns a simple TMC location reference. The simple TMC reference will havepreciseTMCInfo
populated to match theLinearLocation
that was passed in. The resolution of the producedPreciseTMCInformation
is 100m. The rounding is done in such a way that the TMC reference covers the full linear location, so it might be up to 100m longer at each end.Because TMC relies on pre-coded, shared location tables, it is possible that a
LinearLocation
can not be encoded in TMC. In such cases the creator will throw aTmcCreatorException
.For details on how TMC works, see the Developer Guide.
Note that without passing in a valid
adjacencyProvider
this API only supports creating references withextent
<= 1. In noadjacencyProvider
is given, the creator will fail with aNoLinearAvailableException
if the given location is not fully covered by the same location code. -
extendedTmc
Generates a creator forExtendedTMCLocationReference
s.This reference creator takes a
LinearLocation
and returns an extended TMC location reference. The extended TMC reference will havepreciseTMCInfo
populated to match theLinearLocation
that was passed in. The resolution of the producedPreciseTMCInformation
is 100m. The rounding is done in such a way that the TMC reference covers the full linear location, so it might be up to 100m longer at each end.This creator will always return
ExtendedTMCLocationReference
s that contain atmcLocation
, not atmcExitEntryLocation
.Because TMC relies on pre-coded, shared location tables, it is possible that a
LinearLocation
can not be encoded in TMC. In such cases the creator will throw aTmcCreatorException
.For details on how TMC works, see the Developer Guide.
Note that without passing in a valid
adjacencyProvider
this API only supports creating references withextent
<= 1. In noadjacencyProvider
is given, the creator will fail with aNoLinearAvailableException
if the given location is not fully covered by the same location code. -
piecewiseExtendedTmc
Generates a creator forPiecewiseTmcCoverage
.Because TMC relies on pre-coded, shared location tables, it is possible that a
LinearLocation
can not be encoded or not fully encoded in TMC.This reference creator takes a
LinearLocation
and returns the potentially piecewise TMC coverage for those parts of the givenLinearLocation
that can be encoded into TMC.The extended TMC references will have
preciseTMCInfo
populated to match theLinearLocation
that was passed in. The resolution of the producedpreciseTMCInfo
is 100m. The rounding is done in such a way that the TMC reference covers the full linear location, so it might be up to 100m longer at each end.This creator will always return
PiecewiseTmcCoverage
s that containTMCLocationReference
s, notTMCExitEntryLocationReference
s.For details on how TMC works, see the Developer Guide.
Note that without passing in a valid
adjacencyProvider
this API only supports creating references withextent
<= 1. If noadjacencyProvider
is given, the creator will create multiple location references, one reference for each location code on the path.
-