Class OlrLocationReferenceCreators
LocationReferenceCreators 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 forClosedLinearLocationReferences.closedLinear(DirectedGraph<Vertex, Edge> graph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API.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 forLinearLocationReferences.linear(DirectedGraph<Vertex, Edge> graph, DirectedGraph<Vertex, Edge> reverseGraph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, Boolean> isRoadAccessible, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API.olr()Generates a creator forOpenLRLocationReferences fromReferencingLocations.olr(DirectedGraph<Vertex, Edge> graph, DirectedGraph<Vertex, Edge> reverseGraph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, Boolean> isRoadAccessible, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API.Generates a creator forPointAlongLineLocationReferences.pointAlongLine(DirectedGraph<Vertex, Edge> graph, DirectedGraph<Vertex, Edge> reverseGraph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, Boolean> isRoadAccessible, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API.Generates a creator forPOIWithAccessPointLocationReferences.poiWithAccessPoint(DirectedGraph<Vertex, Edge> graph, DirectedGraph<Vertex, Edge> reverseGraph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, Boolean> isRoadAccessible, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API.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 forLinearLocationReferences.As a
LinearLocationReferencerefers to a path in the road network, you need to create this reference against a map. -
closedLinear
Generates a creator forClosedLinearLocationReferences.A
ClosedLinearLocationReferencerefers to a closed path in the road network and thus needs to be created against a map. -
pointAlongLine
Generates a creator forPointAlongLineLocationReferences.A
PointAlongLineLocationReferencerefers 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 forPOIWithAccessPointLocationReferences.A
POIWithAccessPointLocationReferencerefers 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 forOpenLRLocationReferences fromReferencingLocations.This creator chooses the correct type of OpenLR reference depending on the actual subtype of
ReferencingLocationthat is being passed in. -
linear
public static LocationReferenceCreator<LinearLocation,LinearLocationReference> linear(DirectedGraph<Vertex, Edge> graph, DirectedGraph<Vertex, Edge> reverseGraph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, Boolean> isRoadAccessible, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API. It may be removed or changed in future versions.Generates a creator for
LinearLocationReferences.As a
LinearLocationReferencerefers to a path in the road network, you need to create this reference against a map. -
closedLinear
public static LocationReferenceCreator<ClosedLinearLocation,ClosedLinearLocationReference> closedLinear(DirectedGraph<Vertex, Edge> graph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API. It may be removed or changed in future versions.Generates a creator for
ClosedLinearLocationReferences.A
ClosedLinearLocationReferencerefers to a closed path in the road network and thus needs to be created against a map. -
pointAlongLine
public static LocationReferenceCreator<AccessPoint,PointAlongLineLocationReference> pointAlongLine(DirectedGraph<Vertex, Edge> graph, DirectedGraph<Vertex, Edge> reverseGraph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, Boolean> isRoadAccessible, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API. It may be removed or changed in future versions.Generates a creator for
PointAlongLineLocationReferences.A
PointAlongLineLocationReferencerefers to a point on a road section and thus needs to be created against a map. -
poiWithAccessPoint
public static LocationReferenceCreator<PointOfInterest,POIWithAccessPointLocationReference> poiWithAccessPoint(DirectedGraph<Vertex, Edge> graph, DirectedGraph<Vertex, Edge> reverseGraph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, Boolean> isRoadAccessible, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API. It may be removed or changed in future versions.Generates a creator for
POIWithAccessPointLocationReferences.A
POIWithAccessPointLocationReferencerefers to an access point on a road section and thus needs to be created against a map. -
olr
public static LocationReferenceCreator<ReferencingLocation,OpenLRLocationReference> olr(DirectedGraph<Vertex, Edge> graph, DirectedGraph<Vertex, Edge> reverseGraph, PropertyMap<Vertex, LineStringHolder<GeoCoordinate>> geometries, PropertyMap<Vertex, Double> lengths, RangeBasedPropertyMap<Vertex, Boolean> isRoadAccessible, RangeBasedPropertyMap<Vertex, FunctionalClass> functionalClass, RangeBasedPropertyMap<Vertex, FormOfWay> formOfWay) This is an experimental API. It may be removed or changed in future versions.Generates a creator for
OpenLRLocationReferences fromReferencingLocations.This creator chooses the correct type of OpenLR reference depending on the actual subtype of
ReferencingLocationthat is being passed in.
-