public class

RouteMatchingResult

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

Class Overview

A class that defines list of matching points from road network.

Summary

Public Constructors
RouteMatchingResult(Projection projection, RouteMatchingPointVector matchingPoints, RouteMatchingEdgeVector matchingEdges)
Constructs a new RouteMatchingResult instance from projection and matched points.
Public Methods
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
RouteMatchingEdgeVector getMatchingEdges()
Returns the list with details of the matched edges.
RouteMatchingPointVector getMatchingPoints()
Returns the list with details of the matched points.
MapPosVector getPoints()
Returns the point list of the result.
Projection getProjection()
Returns the projection of the points in the result.
int hashCode()
Returns the hash value of this object.
String toString()
Creates a string representation of this result object, useful for logging.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public RouteMatchingResult (Projection projection, RouteMatchingPointVector matchingPoints, RouteMatchingEdgeVector matchingEdges)

Constructs a new RouteMatchingResult instance from projection and matched points.

Parameters
projection The projection of the routing result (same as the request).
matchingPoints The matched points corresponding to the requested points snapped to road network.
matchingEdges The matched edges that are referenced through matching points.

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 RouteMatchingEdgeVector getMatchingEdges ()

Returns the list with details of the matched edges.

Returns
  • The list with details of the matched edges.

public RouteMatchingPointVector getMatchingPoints ()

Returns the list with details of the matched points.

Returns
  • The list with details of the matched points.

public MapPosVector getPoints ()

Returns the point list of the result. The list contains all the points from the request snapped to the road network.

Returns
  • The point list of the result.

public Projection getProjection ()

Returns the projection of the points in the result.

Returns
  • The projection of the result.

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 result object, useful for logging.

Returns
  • The string representation of this result object.