Class TmcLocationReferenceResolvers
-
Constructor Summary
ConstructorsConstructorDescriptionTmcLocationReferenceResolvers(TmcLayers tmcLayers) TmcLocationReferenceResolvers(TmcLayers tmcLayers, TmcAdjacencyProvider adjacencyProvider) -
Method Summary
Modifier and TypeMethodDescriptionCreates a resolver forExtendedTMCLocationReferences.extendedTmc(PropertyMap<Vertex, Double> length, PropertyMap<TrafficMessageChannelCode, Optional<LinearLocation>> tmcCodesToLinearLocations, Optional<TmcAdjacencyProvider> adjacencyProvider) Creates a resolver forExtendedTMCLocationReferences.tmc()Creates a resolver for simpleTMCLocationReferences.tmc(PropertyMap<Vertex, Double> length, PropertyMap<TrafficMessageChannelCode, Optional<LinearLocation>> tmcCodesToLinearLocations, Optional<TmcAdjacencyProvider> adjacencyProvider) Creates a resolver for simpleTMCLocationReferences.
-
Constructor Details
-
TmcLocationReferenceResolvers
-
TmcLocationReferenceResolvers
-
-
Method Details
-
tmc
Creates a resolver for simpleTMCLocationReferences.TMC resolvers return a
BidirectionalLinearLocationbecause 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
adjacencyProviderthis API only supports resolving references withextent<= 1. To get support for a longerextentanadjacencyProviderneeds 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 forExtendedTMCLocationReferences.ExtendedTMCLocationReferencehave two fields with location reference:tmcLocationortmcExitEntryLocation.tmcLocation. Per the standard, only one of these two should be defined. This resolver uses thetmcLocationfield by default, and falls back to the other in case the former is not present.TMC resolvers return a
BidirectionalLinearLocationbecause 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
adjacencyProviderthis API only supports resolving references withextent<= 1. To get support for a longerextentanadjacencyProviderneeds to be passed in.Note that this API only supports decoding of references with a valid extendedCountryCode.
Note This method has the same behavior as the V2 method of the companion object.
-
tmc
public static LocationReferenceResolver<TMCLocationReference,BidirectionalLinearLocation> tmc(PropertyMap<Vertex, Double> length, PropertyMap<TrafficMessageChannelCode, Optional<LinearLocation>> tmcCodesToLinearLocations, Optional<TmcAdjacencyProvider> adjacencyProvider) Creates a resolver for simpleTMCLocationReferences.TMC resolvers return a
BidirectionalLinearLocationbecause 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
adjacencyProviderthis API only supports resolving references withextent<= 1. To get support for a longerextentanadjacencyProviderneeds to be passed in.Note that this API only supports decoding of references with a valid extendedCountryCode.
-
extendedTmc
public static LocationReferenceResolver<ExtendedTMCLocationReference,BidirectionalLinearLocation> extendedTmc(PropertyMap<Vertex, Double> length, PropertyMap<TrafficMessageChannelCode, Optional<LinearLocation>> tmcCodesToLinearLocations, Optional<TmcAdjacencyProvider> adjacencyProvider) Creates a resolver forExtendedTMCLocationReferences.ExtendedTMCLocationReferencehave two fields with location reference:tmcLocationortmcExitEntryLocation.tmcLocation. Per the standard, only one of these two should be defined. This resolver uses thetmcLocationfield by default, and falls back to the other in case the former is not present.TMC resolvers return a
BidirectionalLinearLocationbecause 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
adjacencyProviderthis API only supports resolving references withextent<= 1. To get support for a longerextentanadjacencyProviderneeds to be passed in.Note that this API only supports decoding of references with a valid extendedCountryCode.
Note This method has the same behavior as the V2 method of the companion object.
-