Class RouteMatchingResult

java.lang.Object
com.massifmaps.routing.RouteMatchingResult

public class RouteMatchingResult extends Object
A class that defines list of matching points from road network.
  • Constructor Details

    • RouteMatchingResult

      public RouteMatchingResult(Projection projection, RouteMatchingPointVector matchingPoints, RouteMatchingEdgeVector matchingEdges, String rawResult)
      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.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • getProjection

      public Projection getProjection()
      Returns the projection of the points in the result.
      Returns:
      The projection of the result.
    • getPoints

      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.
    • getMatchingEdges

      public RouteMatchingEdgeVector getMatchingEdges()
      Returns the list with details of the matched edges.
      Returns:
      The list with details of the matched edges.
    • getMatchingPoints

      public RouteMatchingPointVector getMatchingPoints()
      Returns the list with details of the matched points.
      Returns:
      The list with details of the matched points.
    • getRawResult

      public String getRawResult()
      Returns raw result
    • toString

      public String toString()
      Creates a string representation of this result object, useful for logging.
      Overrides:
      toString in class Object
      Returns:
      The string representation of this result object.