Package com.massifmaps.routing
Class RouteMatchingPoint
java.lang.Object
com.massifmaps.routing.RouteMatchingPoint
A class that defines a route matching result point.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new RouteMatchingPoint with default values.RouteMatchingPoint(MapPos pos, int type, int edgeIndex) Constructs a new RouteMatchingPoint from position, type and edge index. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.intReturns the corresponding matching edge index in the matching result.getPos()Returns the position of the matching point.intgetType()Returns the type of the matching point.inthashCode()Returns the hash value of this object.toString()Creates a string representation of this object, useful for logging.
-
Constructor Details
-
RouteMatchingPoint
public RouteMatchingPoint()Constructs a new RouteMatchingPoint with default values. -
RouteMatchingPoint
Constructs a new RouteMatchingPoint from position, type and edge index.- Parameters:
pos- The position of the point.type- The type of the matching point.edgeIndex- The index of the corresponding RouteMatchingEdge instance.
-
-
Method Details
-
equals
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getPos
Returns the position of the matching point.- Returns:
- The position of the matching point.
-
getType
public int getType()Returns the type of the matching point.- Returns:
- The type of the matching point.
-
getEdgeIndex
public int getEdgeIndex()Returns the corresponding matching edge index in the matching result.- Returns:
- The corresponding matching edge index in the matching result.
-
toString
Creates a string representation of this object, useful for logging.
-