Package com.massifmaps.routing
Class RouteMatchingResult
java.lang.Object
com.massifmaps.routing.RouteMatchingResult
A class that defines list of matching points from road network.
-
Constructor Summary
ConstructorsConstructorDescriptionRouteMatchingResult(Projection projection, RouteMatchingPointVector matchingPoints, RouteMatchingEdgeVector matchingEdges, String rawResult) Constructs a new RouteMatchingResult instance from projection and matched points. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.Returns the list with details of the matched edges.Returns the list with details of the matched points.Returns the point list of the result.Returns the projection of the points in the result.Returns raw resultinthashCode()Returns the hash value of this object.toString()Creates a string representation of this result object, useful for logging.
-
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
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()Returns the hash value of this object. -
getProjection
Returns the projection of the points in the result.- Returns:
- The projection of the result.
-
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
Returns the list with details of the matched edges.- Returns:
- The list with details of the matched edges.
-
getMatchingPoints
Returns the list with details of the matched points.- Returns:
- The list with details of the matched points.
-
getRawResult
Returns raw result -
toString
Creates a string representation of this result object, useful for logging.
-