Class OlrLocationReferenceResolvers
LocationReferenceResolvers 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 forCircleLocationReferences.Creates a resolver forClosedLinearLocationReferences.closedLinear(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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.Creates a resolver forGeoCoordinateLocationReference.grid()Creates a resolver forGridLocationReferences.linear()Creates a resolver forLinearLocationReferences.linear(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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()Creates a resolver that resolvesOpenLRLocationReferences toReferencingLocations.olr(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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.Creates a resolver forPointAlongLineLocationReferences.pointAlongLine(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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.Creates a resolver forPOIWithAccessPointLocationReferences.poiWithAccessPoint(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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()Creates a resolver forPolygonLocationReferences.Creates a resolver forRectangleLocationReferences.
-
Constructor Details
-
OlrLocationReferenceResolvers
-
OlrLocationReferenceResolvers
-
-
Method Details
-
linear
Creates a resolver forLinearLocationReferences.A
LinearLocationReferencerefers to a path in the road network and thus needs to be resolved against a map. If the reference cannot be resolved anOlrResolverExceptionis thrown. Specific cases where this can happen are described in the documentation of the exception class. -
pointAlongLine
Creates a resolver forPointAlongLineLocationReferences.A
PointAlongLineLocationReferencerefers to a point on a road section and thus needs to be resolved against a map. If the reference cannot be resolved anOlrResolverExceptionis thrown. Specific cases where this can happen are described in the documentation of the exception class. -
closedLinear
Creates a resolver forClosedLinearLocationReferences.A
ClosedLinearLocationReferencerefers to a closed path in the road network and thus needs to be resolved against a map. If the reference cannot be resolved anOlrResolverExceptionis thrown. Specific cases where this can happen are described in the documentation of the exception class. -
poiWithAccessPoint
public LocationReferenceResolver<POIWithAccessPointLocationReference,PointOfInterest> poiWithAccessPoint()Creates a resolver forPOIWithAccessPointLocationReferences.A
POIWithAccessPointLocationReferencerefers to an access point on a road section and thus needs to be resolved against a map. If the reference cannot be resolved anOlrResolverExceptionis thrown. Specific cases where this can happen are described in the documentation of the exception class. -
rectangle
Creates a resolver forRectangleLocationReferences.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 forPolygonLocationReferences.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 forCircleLocationReferences.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 forGridLocationReferences.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.
GridLocationprovides methods to retrieve all the bounding boxes that compose the grid. -
olr
Creates a resolver that resolvesOpenLRLocationReferences toReferencingLocations.This resolver chooses the correct type of
ReferencingLocationbased on the type the OpenLR reference that is being passed in. For the following reference types anOlrResolverExceptioncan be thrown if the reference cannot be resolved:LinearLocationReferenceClosedLinearLocationReferencePointAlongLineLocationReferencePOIWithAccessPointLocationReference
Specific cases where this can happen are described in the documentation of the exception class.
-
linear
public static LocationReferenceResolver<LinearLocationReference,LinearLocation> linear(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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.Creates a resolver for
LinearLocationReferences.A
LinearLocationReferencerefers to a path in the road network and thus needs to be resolved against a map. If the reference cannot be resolved anOlrResolverExceptionis thrown. Specific cases where this can happen are described in the documentation of the exception class. -
closedLinear
public static LocationReferenceResolver<ClosedLinearLocationReference,ClosedLinearLocation> closedLinear(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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.Creates a resolver for
ClosedLinearLocationReferences.A
ClosedLinearLocationReferencerefers to a closed path in the road network and thus needs to be resolved against a map. If the reference cannot be resolved anOlrResolverExceptionis thrown. Specific cases where this can happen are described in the documentation of the exception class. -
pointAlongLine
public static LocationReferenceResolver<PointAlongLineLocationReference,AccessPoint> pointAlongLine(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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.Creates a resolver for
PointAlongLineLocationReferences.A
PointAlongLineLocationReferencerefers to a point on a road section and thus needs to be resolved against a map. If the reference cannot be resolved anOlrResolverExceptionis thrown. Specific cases where this can happen are described in the documentation of the exception class. -
poiWithAccessPoint
public static LocationReferenceResolver<POIWithAccessPointLocationReference,PointOfInterest> poiWithAccessPoint(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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.Creates a resolver for
POIWithAccessPointLocationReferences.A
POIWithAccessPointLocationReferencerefers to an access point on a road section and thus needs to be resolved against a map. If the reference cannot be resolved anOlrResolverExceptionis thrown. Specific cases where this can happen are described in the documentation of the exception class. -
olr
public static LocationReferenceResolver<OpenLRLocationReference,ReferencingLocation> olr(ProximitySearch<GeoCoordinate, Vertex> proximitySearch, DirectedGraph<Vertex, Edge> graph, 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.Creates a resolver that resolves
OpenLRLocationReferences toReferencingLocations.This resolver chooses the correct type of
ReferencingLocationbased on the type the OpenLR reference that is being passed in. For the following reference types anOlrResolverExceptioncan be thrown if the reference cannot be resolved:LinearLocationReferenceClosedLinearLocationReferencePointAlongLineLocationReferencePOIWithAccessPointLocationReference
Specific cases where this can happen are described in the documentation of the exception class.
-