Class LocationReferenceResolvers
LocationReferenceResolver
s
to resolve different location reference types into Location Library data model specific
representations.-
Constructor Summary
ConstructorsConstructorDescriptionLocationReferenceResolvers
(OptimizedMapLayers optimizedMapLayers) LocationReferenceResolvers
(OptimizedMapLayers optimizedMapLayers, TmcAdjacencyProvider adjacencyProvider) -
Method Summary
Modifier and TypeMethodDescriptionCreates a resolver forExtendedTMCLocationReference
s.extendedTmcV2
(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.extendedTmcV2
(Catalog optimizedMap, DataLoaderProvider cacheManager, TmcAdjacencyProvider adjacencyProvider) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers, adjacencyProvider).extendedTmc()
.olr()
Creates a resolver that resolvesOpenLRLocationReference
s toReferencingLocation
s.olr
(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olr()
.Creates a resolver forCircleLocationReference
s.Creates a resolver forClosedLinearLocationReference
s.olrClosedLinear
(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olrClosedLinear()
.Creates a resolver forGeoCoordinateLocationReference
.olrGrid()
Creates a resolver forGridLocationReference
s.Creates a resolver forLinearLocationReference
s.olrLinear
(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olrLinear()
.Creates a resolver forPointAlongLineLocationReference
s.olrPointAlongLine
(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olrPointAlongLine()
.Creates a resolver forPOIWithAccessPointLocationReference
s.olrPoiWithAccessPoint
(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olrPoiWithAccessPoint()
.Creates a resolver forPolygonLocationReference
s.Creates a resolver forRectangleLocationReference
s.tmc()
Creates a resolver for simpleTMCLocationReference
s.tmc
(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).tmc()
.tmc
(Catalog optimizedMap, DataLoaderProvider cacheManager, TmcAdjacencyProvider adjacencyProvider) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers, adjacencyProvider).tmc()
.
-
Constructor Details
-
LocationReferenceResolvers
-
LocationReferenceResolvers
public LocationReferenceResolvers(OptimizedMapLayers optimizedMapLayers, TmcAdjacencyProvider adjacencyProvider) - Parameters:
adjacencyProvider
- Provides information about TMC location adjacency to support creation of references withextent
> 1.
-
-
Method Details
-
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.
Note This method has the same behavior as the V2 method of the companion object.
-
tmc
@Deprecated public static LocationReferenceResolver<TMCLocationReference,BidirectionalLinearLocation> tmc(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).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 this resolver only supports decoding of references with
extent
<= 1 and a validextendedCountryCode
. To get support for a longerextent
anadjacencyProvider
needs to be passed in.- Parameters:
optimizedMap
- An Optimized Map for Location Library instance
-
tmc
@Deprecated public static LocationReferenceResolver<TMCLocationReference,BidirectionalLinearLocation> tmc(Catalog optimizedMap, DataLoaderProvider cacheManager, TmcAdjacencyProvider adjacencyProvider) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers, adjacencyProvider).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 this API only supports decoding of references with a valid
extendedCountryCode
.- Parameters:
optimizedMap
- An Optimized Map for Location Library instanceadjacencyProvider
- TheadjacencyProvider
is needed to decode references withextent
> 1.
-
extendedTmcV2
@Deprecated public static LocationReferenceResolver<ExtendedTMCLocationReference,BidirectionalLinearLocation> extendedTmcV2(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).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 this resolver only supports decoding of references with
extent
<= 1 and a validextendedCountry Code
. To get support for a longerextent
anadjacencyProvider
needs to be passed in. *- Parameters:
optimizedMap
- An Optimized Map for Location Library instance
-
extendedTmcV2
@Deprecated public static LocationReferenceResolver<ExtendedTMCLocationReference,BidirectionalLinearLocation> extendedTmcV2(Catalog optimizedMap, DataLoaderProvider cacheManager, TmcAdjacencyProvider adjacencyProvider) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers, adjacencyProvider).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.
- Parameters:
optimizedMap
- An Optimized Map for Location Library instance.adjacencyProvider
- TheadjacencyProvider
is needed to decode references withextent
> 1.
-
olrLinear
Creates a resolver forLinearLocationReference
s.A
LinearLocationReference
refers to a path in the road network and thus needs to be resolved against a map. If the reference cannot be resolved anOlrException
is thrown. -
olrLinear
@Deprecated public static LocationReferenceResolver<LinearLocationReference,LinearLocation> olrLinear(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olrLinear()
.Creates a resolver forLinearLocationReference
s.A
LinearLocationReference
refers to a path in the road network and thus needs to be resolved against a map. If the reference cannot be resolved anOlrException
is thrown.- Parameters:
optimizedMap
- An Optimized Map for Location Library instance.
-
olrClosedLinear
@Deprecated public static LocationReferenceResolver<ClosedLinearLocationReference,ClosedLinearLocation> olrClosedLinear(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olrClosedLinear()
.Creates a resolver forClosedLinearLocationReference
s.A
ClosedLinearLocationReference
refers to a closed path in the road network and thus needs to be resolved against a map. If the reference cannot be resolved anOlrException
is thrown.- Parameters:
optimizedMap
- An Optimized Map for Location Library instance
-
olrPointAlongLine
Creates a resolver forPointAlongLineLocationReference
s.A
PointAlongLineLocationReference
refers to a point on a road section and thus needs to be resolved against a map. If the reference cannot be resolved anOlrException
is thrown. -
olrClosedLinear
public LocationReferenceResolver<ClosedLinearLocationReference,ClosedLinearLocation> olrClosedLinear()Creates a resolver forClosedLinearLocationReference
s.A
ClosedLinearLocationReference
refers to a closed path in the road network and thus needs to be resolved against a map. If the reference cannot be resolved anOlrException
is thrown. -
olrPointAlongLine
@Deprecated public static LocationReferenceResolver<PointAlongLineLocationReference,AccessPoint> olrPointAlongLine(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olrPointAlongLine()
.Creates a resolver forPointAlongLineLocationReference
s.A
PointAlongLineLocationReference
refers to a point on a road section and thus needs to be resolved against a map. If the reference cannot be resolved anOlrException
is thrown.- Parameters:
optimizedMap
- An Optimized Map for Location Library instance.
-
olrPoiWithAccessPoint
public LocationReferenceResolver<POIWithAccessPointLocationReference,PointOfInterest> olrPoiWithAccessPoint()Creates a resolver forPOIWithAccessPointLocationReference
s.A
POIWithAccessPointLocationReference
refers to an access point on a road section and thus needs to be resolved against a map. If the reference cannot be resolved anOlrException
is thrown. -
olrPoiWithAccessPoint
@Deprecated public static LocationReferenceResolver<POIWithAccessPointLocationReference,PointOfInterest> olrPoiWithAccessPoint(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olrPoiWithAccessPoint()
.Creates a resolver forPOIWithAccessPointLocationReference
s.A
POIWithAccessPointLocationReference
refers to an access point on a road section and thus needs to be resolved against a map. If the reference cannot be resolved anOlrException
is thrown.- Parameters:
optimizedMap
- An Optimized Map for Location Library instance.
-
olrRectangle
public static LocationReferenceResolver<RectangleLocationReference,RectangleLocation> olrRectangle()Creates a resolver forRectangleLocationReference
s.A rectangle location reference is based on rectangular shapes and is defined in terms of a pair of geopoints, defining north/south latitude limits, and east/west longitude limits.
This reference type is disconnected from the road network, and does not require a catalog to be resolved.
-
olrGeoCoordinate
public static LocationReferenceResolver<GeoCoordinateLocationReference,GeoCoordinateLocation> olrGeoCoordinate()Creates a resolver forGeoCoordinateLocationReference
.OLR's geocoordinates are represented by integer values. This resolver converts them back to WGS84 coordinates.
This reference type is disconnected from the road network, and does not require a catalog to be resolved.
-
olrPolygon
Creates a resolver forPolygonLocationReference
s.A polygon location is a non-intersecting shape defined by a sequence of geocoordinate pairs. It can be used to represent any complex area in the map, like a low emission zone, or an area where traffic is overloaded.
This reference type is disconnected from the road network, and does not require a catalog to be resolved.
-
olrCircle
Creates a resolver forCircleLocationReference
s.A circle location is given by a geo-location of the center of the circle and its radius.
Real-world examples include a Wi-Fi hotspot with its signal range, or the center and radius used with a proximity search.
This reference type is disconnected from the road network, and does not require a catalog to be resolved.
-
olrGrid
Creates a resolver forGridLocationReference
s.Grid locations are defined in terms of a base rectangle location and a number of rows and columns. The base rectangle is multiplied to the north by the the number of rows and to the east by the number of columns.
Weather reports are a real-world example for this reference type. For instance, average rainfall could be defined for every cell of the grid.
This reference type is disconnected from the road network, and does not require a catalog to be resolved.
GridLocation
provides methods to retrieve all the bounding boxes that compose the grid. -
olr
Creates a resolver that resolvesOpenLRLocationReference
s toReferencingLocation
s.This resolver chooses the correct type of
ReferencingLocation
based on the type the OpenLR reference that is being passed in. -
olr
@Deprecated public static LocationReferenceResolver<OpenLRLocationReference,ReferencingLocation> olr(Catalog optimizedMap, DataLoaderProvider cacheManager) Deprecated.Prefernew LocationReferenceResolvers(optimizedMapLayers).olr()
.Creates a resolver that resolvesOpenLRLocationReference
s toReferencingLocation
s.This resolver chooses the correct type of
ReferencingLocation
based on the type the OpenLR reference that is being passed in.- Parameters:
optimizedMap
- An Optimized Map for Location Library instance
-
new LocationReferenceResolvers(optimizedMapLayers).extendedTmc()
.