Class TmcLocationReferenceResolvers
LocationReferenceResolver
s factories to resolve different location reference types
into Location Library data model specific representations.
param: adjacencyProvider The adjacencyProvider
is needed to decode references with extent
> 1.
-
Constructor Summary
ConstructorsConstructorDescriptionTmcLocationReferenceResolvers
(OptimizedMapLayers optimizedMap) TmcLocationReferenceResolvers
(OptimizedMapLayers optimizedMap, TmcAdjacencyProvider adjacencyProvider) TmcLocationReferenceResolvers
(TmcLayers tmcLayers) TmcLocationReferenceResolvers
(TmcLayers tmcLayers, TmcAdjacencyProvider adjacencyProvider) TmcLocationReferenceResolvers
(TmcLayers tmcLayers, scala.Option<TmcAdjacencyProvider> adjacencyProvider) -
Method Summary
Modifier and TypeMethodDescriptionapply
(OptimizedMapLayers optimizedMap) apply
(OptimizedMapLayers optimizedMap, TmcAdjacencyProvider adjacencyProvider) apply
(TmcLayers tmcLayers, TmcAdjacencyProvider adjacencyProvider) Creates a resolver forExtendedTMCLocationReference
s.tmc()
Creates a resolver for simpleTMCLocationReference
s.
-
Constructor Details
-
TmcLocationReferenceResolvers
public TmcLocationReferenceResolvers(TmcLayers tmcLayers, scala.Option<TmcAdjacencyProvider> adjacencyProvider) -
TmcLocationReferenceResolvers
-
TmcLocationReferenceResolvers
-
TmcLocationReferenceResolvers
public TmcLocationReferenceResolvers(OptimizedMapLayers optimizedMap, TmcAdjacencyProvider adjacencyProvider) -
TmcLocationReferenceResolvers
-
-
Method Details
-
apply
public static TmcLocationReferenceResolvers apply(TmcLayers tmcLayers, TmcAdjacencyProvider adjacencyProvider) -
apply
-
apply
public static TmcLocationReferenceResolvers apply(OptimizedMapLayers optimizedMap, TmcAdjacencyProvider adjacencyProvider) -
apply
-
tmc
Creates a resolver for simpleTMCLocationReference
s.TMC resolvers return a
BidirectionalLinearLocation
because TMC location references can, at the same time, refer to the positive and negative parts of the location.For details on how TMC works, see the Developer Guide.
Note that without passing in a valid
adjacencyProvider
this API only supports resolving references withextent
<= 1. To get support for a longerextent
anadjacencyProvider
needs to be passed in.Note that this API only supports decoding of references with a valid extendedCountryCode.
-
extendedTmc
public LocationReferenceResolver<ExtendedTMCLocationReference,BidirectionalLinearLocation> extendedTmc()Creates a resolver forExtendedTMCLocationReference
s.ExtendedTMCLocationReference
have two fields with location reference:tmcLocation
ortmcExitEntryLocation.tmcLocation
. Per the standard, only one of these two should be defined. This resolver uses thetmcLocation
field by default, and falls back to the other in case the former is not present.TMC resolvers return a
BidirectionalLinearLocation
because TMC location references can, at the same time, refer to the positive and negative parts of the location.For details on how TMC works, see the Developer Guide.
Note that without passing in a valid
adjacencyProvider
this API only supports resolving references withextent
<= 1. To get support for a longerextent
anadjacencyProvider
needs to be passed in.Note that this API only supports decoding of references with a valid extendedCountryCode.
-