public class

RouteMatchingPoint

extends Object
java.lang.Object
   ↳ com.carto.routing.RouteMatchingPoint

Class Overview

A class that defines a route matching result point.

Summary

Public Constructors
RouteMatchingPoint()
Constructs a new RouteMatchingPoint with default values.
RouteMatchingPoint(MapPos pos, RouteMatchingPointType type, int edgeIndex)
Constructs a new RouteMatchingPoint from position, type and edge index.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
int getEdgeIndex()
Returns the corresponding matching edge index in the matching result.
MapPos getPos()
Returns the position of the matching point.
RouteMatchingPointType getType()
Returns the type of the matching point.
int hashCode()
Returns the hash value of this object.
String toString()
Creates a string representation of this object, useful for logging.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RouteMatchingPoint ()

Constructs a new RouteMatchingPoint with default values.

public RouteMatchingPoint (MapPos pos, RouteMatchingPointType type, int edgeIndex)

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.

Public Methods

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public int getEdgeIndex ()

Returns the corresponding matching edge index in the matching result.

Returns
  • The corresponding matching edge index in the matching result.

public MapPos getPos ()

Returns the position of the matching point.

Returns
  • The position of the matching point.

public RouteMatchingPointType getType ()

Returns the type of the matching point.

Returns
  • The type of the matching point.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public String toString ()

Creates a string representation of this object, useful for logging.

Returns
  • The string representation of this object.