com.here.platform.location.integration.optimizedmap.graph
PropertyMaps
Companion class PropertyMaps
object PropertyMaps
- Alphabetic
- By Inheritance
- PropertyMaps
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
class
AdasAttributes extends AnyRef
Provides factory methods for accessing properties from the
adasattributes
layer of Optimized Map for Location Library. -
class
AdvancedNavigationAttributes extends AnyRef
Provides factory methods for accessing properties from the
advancednavigationattributes
layer of Optimized Map for Location Library. -
class
NavigationAttributes extends AnyRef
Provides factory methods for accessing properties from the
navigationattributes
layer of Optimized Map for Location Library. -
class
RoadAttributes extends AnyRef
Provides factory methods for accessing properties from the
roadattributes
layer of Optimized Map for Location Library.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
apply(optimizedMap: OptimizedMapLayers): PropertyMaps
Creates a PropertyMaps from an Optimized Map for Location Library.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def freeFlowSpeed(freeFlowSpeedLayer: FreeFlowSpeedLayer): RangeBasedPropertyMap[Vertex, Int]
- def geometry(geometryLayer: GeometryLayer): PropertyMap[Vertex, PackedLineString]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hereMapContentReferenceToVertex(mappingLayer: MappingLayer): PropertyMap[HereMapContentReference, Vertex]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def length(lengthLayer: LengthLayer): PropertyMap[Vertex, Double]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def roadAccess(roadAccessLayer: RoadAccessLayer, accessType: RoadAccessType): RangeBasedPropertyMap[Vertex, Boolean]
- def roadAccess(roadAccessLayer: RoadAccessLayer): RangeBasedPropertyMap[Vertex, RoadAccessType]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- def turnRestrictions(restrictedManoeuvreLayer: RestrictedManoeuvreLayer, accessRestriction: AccessRestrictionType): PropertyMap[Edge, Boolean]
- def turnRestrictions(restrictedManoeuvreLayer: RestrictedManoeuvreLayer): PropertyMap[Edge, AccessRestrictionType]
- def vertexToHereMapContentReference(mappingLayer: MappingLayer): PropertyMap[Vertex, HereMapContentReference]
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- object AdasAttributes
- object AdvancedNavigationAttributes
- object NavigationAttributes
- object RoadAttributes
Deprecated Value Members
-
def
advancedNavigationAttribute[T](optimizedMap: Catalog, compiledLayerId: String, hereMapContent: Catalog, cacheManager: CacheManager, accessor: AttributeAccessor[AdvancedNavigationAttributesPartition, T])(implicit arg0: ClassTag[T]): RangeBasedPropertyMap[Vertex, T]
Creates a RangeBasedPropertyMap that compiles one of the HERE Map Content AdvancedNavigationAttributes lazily and on the fly.
Creates a RangeBasedPropertyMap that compiles one of the HERE Map Content AdvancedNavigationAttributes lazily and on the fly.
Note: This method does not support attributes with overlapping ranges because, in that case, it is not possible to uniquely determine which attribute value applies at a specific point on a road.
See also
rangeBasedProperty
.- T
The type of the compiled attribute
- compiledLayerId
a unique layer id, identifying the AttributeAccessor used for caching purposes.
- accessor
an AttributeAccessor that extracts the wanted attribute contained in the
advanced-navigation-attributes
layer of HERE Map Content
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
freeFlowSpeed(optimizedMap: Catalog, cacheManager: DataLoaderProvider): RangeBasedPropertyMap[Vertex, Int]
Creates an accessor for the free-flow-speed of a com.here.platform.location.inmemory.graph.Vertex.
Creates an accessor for the free-flow-speed of a com.here.platform.location.inmemory.graph.Vertex.
The attribute is returned in km/h.
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
geometry(optimizedMap: Catalog, cacheManager: DataLoaderProvider): PropertyMap[Vertex, PackedLineString]
Creates a map that returns the geometry of a com.here.platform.location.inmemory.graph.Vertex.
Creates a map that returns the geometry of a com.here.platform.location.inmemory.graph.Vertex.
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
hereMapContentReferenceToVertex(optimizedMap: Catalog, cacheManager: DataLoaderProvider): PropertyMap[HereMapContentReference, Vertex]
Creates a map that, given a com.here.platform.location.integration.optimizedmap.geospatial.HereMapContentReference, returns the corresponding com.here.platform.location.inmemory.graph.Vertex.
Creates a map that, given a com.here.platform.location.integration.optimizedmap.geospatial.HereMapContentReference, returns the corresponding com.here.platform.location.inmemory.graph.Vertex.
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
length(optimizedMap: Catalog, cacheManager: DataLoaderProvider): PropertyMap[Vertex, Double]
Creates a map that returns the length of a com.here.platform.location.inmemory.graph.Vertex.
Creates a map that returns the length of a com.here.platform.location.inmemory.graph.Vertex.
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
navigationAttribute[T](optimizedMap: Catalog, compiledLayerId: String, hereMapContent: Catalog, cacheManager: CacheManager, accessor: AttributeAccessor[NavigationAttributesPartition, T])(implicit arg0: ClassTag[T]): RangeBasedPropertyMap[Vertex, T]
Creates a RangeBasedPropertyMap that compiles one of the HERE Map Content NavigationAttributes lazily and on the fly.
Creates a RangeBasedPropertyMap that compiles one of the HERE Map Content NavigationAttributes lazily and on the fly.
Note: This method does not support attributes with overlapping ranges because, in that case, it is not possible to uniquely determine which attribute value applies at a specific point on a road.
See also
rangeBasedProperty
.- T
The type of the compiled attribute
- compiledLayerId
a unique layer id, identifying the AttributeAccessor used for caching purposes.
- accessor
an AttributeAccessor that extracts the wanted attribute contained in the
navigation-attributes
layer of HERE Map Content
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
overlappingRangeBasedProperty[P, T](optimizedMap: Catalog, compiledLayerId: String, cacheManager: CacheManager, tileLoader: TileLoader[P], partitionResolver: PartitionResolver, accessor: AttributeAccessor[P, T])(implicit arg0: ClassTag[T]): PropertyMap[Vertex, Seq[RangeBasedProperty[T]]]
Creates a RangeBasedPropertyMap that compiles an attribute contained in a HERE Map Content layer lazily and on the fly.
Creates a RangeBasedPropertyMap that compiles an attribute contained in a HERE Map Content layer lazily and on the fly.
Note: This method does not support attributes with overlapping ranges because, in that case, it is not possible to uniquely determine which attribute value applies at a specific point on a road.
For convenience, PropertyMaps contains accessors to several HERE Map Content attributes that call this method.
A HERE Map Content layer may contain different types of attributes. For example, the AdvancedNavigationAttributes layer contains several attribute types, one of which represents speed limits. The returned RangeBasedPropertyMap contains the values for only one attribute type. The AttributeAccessor specifies how to retrieve the values for a given attribute type.
For instance, the following code snippet shows how to retrieve speed limits:
val speedLimits: RangeBasedPropertyMap[Vertex, Int] = PropertyMaps.rangeBasedProperty( optimizedMap, "speed-limit", cacheManager, HereMapContentLayers.AdvancedNavigationAttributes.tileLoader(hereMapContent, cacheManager), HereMapContentLayers.AdvancedNavigationAttributes.partitionResolver(optimizedMap, cacheManager), AttributeAccessors .forHereMapContentSegmentAnchor[AdvancedNavigationAttributesPartition, SpeedLimitAttribute, Int]( _.speedLimit, _.value) )
The compilation of one attribute tile of a HERE Map Content layer is an expensive operation. The compilation of all attributes contained in a tile takes place when, for the first time, a running app retrieves the attribute for a vertex that belongs to this tile. If, later, the running app retrieves attributes for other vertices that belong to the same tile, these operations will be fast because the compilation of such attributes already took place.
- P
The input data type containing HERE Map Content attributes
- T
The type of the compiled attribute
- compiledLayerId
a unique layer id, identifying the AttributeAccessor used for caching purposes.
- tileLoader
The loader for the tiles containing the desired data
- partitionResolver
The partition resolver from an Optimized Map tile to all the input tiles, provided by the
tileLoader
, that are needed to compile the specified attribute- accessor
An AttributeAccessor that extracts the attribute contained in the given HERE Map Content layer, or in the layer that follows the HERE Map Content format
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
rangeBasedProperty[P, T](optimizedMap: Catalog, compiledLayerId: String, cacheManager: CacheManager, tileLoader: TileLoader[P], partitionResolver: PartitionResolver, accessor: AttributeAccessor[P, T])(implicit arg0: ClassTag[T]): RangeBasedPropertyMap[Vertex, T]
Creates a RangeBasedPropertyMap that compiles an attribute contained in a HERE Map Content layer lazily and on the fly.
Creates a RangeBasedPropertyMap that compiles an attribute contained in a HERE Map Content layer lazily and on the fly.
Note: This method does not support attributes with overlapping ranges, because in that case, it is not possible to uniquely determine which attribute value applies at a specific point on a road.
For convenience, PropertyMaps contains accessors to several HERE Map Content attributes that call this method.
A HERE Map Content layer may contain different types of attributes. For example, the AdvancedNavigationAttributes layer contains several attribute types, one of which represents speed limits. The returned RangeBasedPropertyMap contains the values for only one attribute type. The AttributeAccessor specifies how to retrieve the values for a given attribute type.
For instance, the following code snippet shows how to retrieve speed limits:
val speedLimits: RangeBasedPropertyMap[Vertex, Int] = PropertyMaps.rangeBasedProperty( optimizedMap, "speed-limit", cacheManager, HereMapContentLayers.AdvancedNavigationAttributes.tileLoader(hereMapContent, cacheManager), HereMapContentLayers.AdvancedNavigationAttributes.partitionResolver(optimizedMap, cacheManager), AttributeAccessors .forHereMapContentSegmentAnchor[AdvancedNavigationAttributesPartition, SpeedLimitAttribute, Int]( _.speedLimit, _.value) )
The compilation of one attribute tile of a HERE Map Content layer is an expensive operation. The compilation of all attributes contained in a tile takes place when, for the first time, a running app retrieves the attribute for a vertex that belongs to this tile. If, later, the running app retrieves attributes for other vertices that belong to the same tile, these operations will be fast because the compilation of such attributes already took place.
See also RangeBasedPropertyMapFactory.
- P
The input data type containing HERE Map Content attributes
- T
The type of the compiled attribute
- compiledLayerId
a unique layer id, identifying the AttributeAccessor used for caching purposes.
- tileLoader
The loader for the tiles containing the desired data
- partitionResolver
The partition resolver from an Optimized Map tile to all the input tiles, provided by the
tileLoader
, that are needed to compile the specified attribute- accessor
An AttributeAccessor that extracts the attribute contained in the given HERE Map Content layer, or in the layer that follows the HERE Map Content format
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
roadAccess(optimizedMap: Catalog, cacheManager: DataLoaderProvider, accessType: RoadAccessType): RangeBasedPropertyMap[Vertex, Boolean]
Creates a RangeBasedPropertyMap that checks whether a Vertex is accessible to any type of traffic represented in
accessType
.Creates a RangeBasedPropertyMap that checks whether a Vertex is accessible to any type of traffic represented in
accessType
.If a Vertex is inaccessible, the RangeBasedPropertyMap returns
Seq(RangeBasedProperty(0.0, 1.0, false))
.The attribute is "optimistically" derived from four HERE Map Content attributes:
- RoadAttributes.accessible_by
- NavigationAttributes.travel_direction
- NavigationAttributes.access_permission
- NavigationAttributes.access_restriction
"Optimistically" means that the road is considered open if it is traversable at some point in time.
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
roadAccess(optimizedMap: Catalog, cacheManager: DataLoaderProvider): RangeBasedPropertyMap[Vertex, RoadAccessType]
Creates a RangeBasedPropertyMap that retrieves the RoadAccessType of a Vertex.
Creates a RangeBasedPropertyMap that retrieves the RoadAccessType of a Vertex.
If a Vertex is inaccessible, the RangeBasedPropertyMap returns
Seq(RangeBasedProperty(0.0, 1.0, RoadAccess.None))
.The attribute is "optimistically" derived from four HERE Map Content attributes:
- RoadAttributes.accessible_by
- NavigationAttributes.travel_direction
- NavigationAttributes.access_permission
- NavigationAttributes.access_restriction
"Optimistically" means that the road is considered open if it is traversable at some point in time.
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
roadAttribute[T](optimizedMap: Catalog, compiledLayerId: String, hereMapContent: Catalog, cacheManager: CacheManager, accessor: AttributeAccessor[RoadAttributesPartition, T])(implicit arg0: ClassTag[T]): RangeBasedPropertyMap[Vertex, T]
Creates a RangeBasedPropertyMap that compiles one of the HERE Map Content RoadAttributes lazily and on the fly.
Creates a RangeBasedPropertyMap that compiles one of the HERE Map Content RoadAttributes lazily and on the fly.
Note: This method does not support attributes with overlapping ranges because, in that case, it is not possible to uniquely determine which attribute value applies at a specific point on a road.
See also
rangeBasedProperty
.- T
The type of the compiled attribute
- compiledLayerId
a unique layer id, identifying the AttributeAccessor used for caching purposes.
- accessor
an AttributeAccessor that extracts the wanted attribute contained in the
road-attributes
layer of HERE Map Content
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
turnRestrictions(optimizedMap: Catalog, cacheManager: DataLoaderProvider, accessRestriction: AccessRestrictionType): PropertyMap[Edge, Boolean]
Creates a PropertyMap that checks whether a turn, a transition between two Vertices represented by an Edge, is restricted for any type of traffic represented in
accessRestriction
.Creates a PropertyMap that checks whether a turn, a transition between two Vertices represented by an Edge, is restricted for any type of traffic represented in
accessRestriction
.Note that, in this context, the word turn can mean going straight.
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
turnRestrictions(optimizedMap: Catalog, cacheManager: DataLoaderProvider): PropertyMap[Edge, AccessRestrictionType]
Creates a PropertyMap that retrieves the AccessRestrictionTypes that apply to a turn, a transition between two Vertices represented by an Edge.
Creates a PropertyMap that retrieves the AccessRestrictionTypes that apply to a turn, a transition between two Vertices represented by an Edge.
Note that, in this context, the word turn can mean going straight.
- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.
-
def
vertexToHereMapContentReference(optimizedMap: Catalog, cacheManager: DataLoaderProvider): PropertyMap[Vertex, HereMapContentReference]
Creates a map that, given a com.here.platform.location.inmemory.graph.Vertex, returns the corresponding com.here.platform.location.integration.optimizedmap.geospatial.HereMapContentReference.
Creates a map that, given a com.here.platform.location.inmemory.graph.Vertex, returns the corresponding com.here.platform.location.integration.optimizedmap.geospatial.HereMapContentReference. It basically does the opposite mapping as done by the map returned by
hereMapContentReferenceToVertex
.- Annotations
- @Deprecated @deprecated
- Deprecated
(Since version SDK 2.54) Use methods based on OptimizedMapLayers instead.