Class OlrLocationReferenceResolvers
LocationReferenceResolver
s to resolve different location reference
types into Location Library data model specific representations.-
Constructor Summary
ConstructorsConstructorDescriptionOlrLocationReferenceResolvers
(OptimizedMapLayers optimizedMap) OlrLocationReferenceResolvers
(OlrLayers olrLayers) -
Method Summary
Modifier and TypeMethodDescriptioncircle()
Creates a resolver forCircleLocationReference
s.Creates a resolver forClosedLinearLocationReference
s.Creates a resolver forGeoCoordinateLocationReference
.grid()
Creates a resolver forGridLocationReference
s.linear()
Creates a resolver forLinearLocationReference
s.olr()
Creates a resolver that resolvesOpenLRLocationReference
s toReferencingLocation
s.Creates a resolver forPointAlongLineLocationReference
s.Creates a resolver forPOIWithAccessPointLocationReference
s.polygon()
Creates a resolver forPolygonLocationReference
s.Creates a resolver forRectangleLocationReference
s.
-
Constructor Details
-
OlrLocationReferenceResolvers
-
OlrLocationReferenceResolvers
-
-
Method Details
-
linear
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. -
pointAlongLine
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. -
closedLinear
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. -
poiWithAccessPoint
public LocationReferenceResolver<POIWithAccessPointLocationReference,PointOfInterest> poiWithAccessPoint()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. -
rectangle
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.
-
geoCoordinate
public static LocationReferenceResolver<GeoCoordinateLocationReference,GeoCoordinateLocation> geoCoordinate()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.
-
polygon
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.
-
circle
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.
-
grid
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.
-