Class OlrLocationReferenceCreators
LocationReferenceCreator
s factories to create different location reference types
from Location Library data model specific representations.-
Constructor Summary
ConstructorsConstructorDescriptionOlrLocationReferenceCreators
(OptimizedMapLayers optimizedMap) OlrLocationReferenceCreators
(OlrLayers olrLayers) -
Method Summary
Modifier and TypeMethodDescriptioncircle()
Generates a creator forCircleLocationReference
.Generates a creator forClosedLinearLocationReference
s.Generates a creator forGeoCoordinateLocationReference
.static <GC> LocationReferenceCreator<GC,
GeoCoordinateLocationReference> geoCoordinate
(GeoCoordinateAdapter<GC> adapter) Generates a creator forGeoCoordinateLocationReference
.static <GC extends GeoCoordinateHolder>
LocationReferenceCreator<GC,GeoCoordinateLocationReference> Generates a creator forGeoCoordinateLocationReference
.grid()
Generates a creator forGridLocationReference
.linear()
Generates a creator forLinearLocationReference
s.olr()
Generates a creator forOpenLRLocationReference
s fromReferencingLocation
s.Generates a creator forPointAlongLineLocationReference
s.Generates a creator forPOIWithAccessPointLocationReference
s.polygon()
Generates a creator forPolygonLocationReference
.static <LR,
P> LocationReferenceCreator<LR, PolygonLocationReference> polygon
(LinearRingAdapter<LR, P> linearRingAdapter, GeoCoordinateAdapter<P> pointAdapter) Generates a creator forPolygonLocationReference
.static <LR extends LinearRingHolder<C>,
C extends GeoCoordinateHolder>
LocationReferenceCreator<LR,PolygonLocationReference> Generates a creator forPolygonLocationReference
.Generates a creator forRectangleLocationReference
.static <BB> LocationReferenceCreator<BB,
RectangleLocationReference> rectangle
(BoundingBoxAdapter<BB> adapter) Generates a creator forRectangleLocationReference
.static <BB extends BoundingBoxHolder>
LocationReferenceCreator<BB,RectangleLocationReference> Generates a creator forRectangleLocationReference
.
-
Constructor Details
-
OlrLocationReferenceCreators
-
OlrLocationReferenceCreators
-
-
Method Details
-
linear
Generates a creator forLinearLocationReference
s.As a
LinearLocationReference
refers to a path in the road network, you need to create this reference against a map. -
closedLinear
Generates a creator forClosedLinearLocationReference
s.A
ClosedLinearLocationReference
refers to a closed path in the road network and thus needs to be created against a map. -
pointAlongLine
Generates a creator forPointAlongLineLocationReference
s.A
PointAlongLineLocationReference
refers to a point on a road section and thus needs to be created against a map. -
poiWithAccessPoint
public LocationReferenceCreator<PointOfInterest,POIWithAccessPointLocationReference> poiWithAccessPoint()Generates a creator forPOIWithAccessPointLocationReference
s.A
POIWithAccessPointLocationReference
refers to an access point on a road section and thus needs to be created against a map. -
rectangle
Generates a creator forRectangleLocationReference
.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 created.
-
rectangle
public static <BB> LocationReferenceCreator<BB,RectangleLocationReference> rectangle(BoundingBoxAdapter<BB> adapter) Generates a creator forRectangleLocationReference
.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 created.
- Parameters:
adapter
- Adapter to extract north/south latitudes and east/west longitudes from BB
-
rectangleFromHolder
public static <BB extends BoundingBoxHolder> LocationReferenceCreator<BB,RectangleLocationReference> rectangleFromHolder()Generates a creator forRectangleLocationReference
.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 created.
-
geoCoordinate
public static LocationReferenceCreator<GeoCoordinateLocation,GeoCoordinateLocationReference> geoCoordinate()Generates a creator forGeoCoordinateLocationReference
.This creator converts WGS84 coordinates to OLR geocoordinates represented by integer values.
This reference type is disconnected from the road network, and does not require a catalog to be created.
-
geoCoordinate
public static <GC> LocationReferenceCreator<GC,GeoCoordinateLocationReference> geoCoordinate(GeoCoordinateAdapter<GC> adapter) Generates a creator forGeoCoordinateLocationReference
.This creator converts WGS84 coordinates to OLR geocoordinates represented by integer values.
This reference type is disconnected from the road network, and does not require a catalog to be created.
-
geoCoordinateFromHolder
public static <GC extends GeoCoordinateHolder> LocationReferenceCreator<GC,GeoCoordinateLocationReference> geoCoordinateFromHolder()Generates a creator forGeoCoordinateLocationReference
.This creator converts WGS84 coordinates to OLR geocoordinates represented by integer values.
This reference type is disconnected from the road network, and does not require a catalog to be created.
-
polygon
Generates a creator forPolygonLocationReference
.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 created.
-
polygon
public static <LR,P> LocationReferenceCreator<LR,PolygonLocationReference> polygon(LinearRingAdapter<LR, P> linearRingAdapter, GeoCoordinateAdapter<P> pointAdapter) Generates a creator forPolygonLocationReference
.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 created.
- Parameters:
linearRingAdapter
- Adapter to obtain points from a linear ringpointAdapter
- Adapter to extract latitude and longitude for P
-
polygonFromHolder
public static <LR extends LinearRingHolder<C>,C extends GeoCoordinateHolder> LocationReferenceCreator<LR,PolygonLocationReference> polygonFromHolder()Generates a creator forPolygonLocationReference
.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 created.
-
circle
Generates a creator forCircleLocationReference
.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 created.
-
grid
Generates a creator forGridLocationReference
.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 created.
-
olr
Generates a creator forOpenLRLocationReference
s fromReferencingLocation
s.This creator chooses the correct type of OpenLR reference depending on the actual subtype of
ReferencingLocation
that is being passed in.
-