| java.lang.Object | |
| ↳ | com.carto.routing.RouteMatchingRequest |
A class that defines required attributes for route matching.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
RouteMatchingRequest(Projection projection, MapPosVector points, float accuracy)
Constructs a new RouteMatchingRequest instance from projection, measured points and accuracy.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| synchronized void | delete() | ||||||||||
| boolean |
equals(Object obj)
Checks if this object is equal to the specified object.
| ||||||||||
| float |
getAccuracy()
Returns the accuracy of the points in the request.
| ||||||||||
| Variant |
getCustomParameter(String param)
Returns the custom parameter value of the request.
| ||||||||||
| Variant |
getPointParameter(int index, String param)
Returns the parameter value for the given routing point.
| ||||||||||
| MapPosVector |
getPoints()
Returns the measured points of the request.
| ||||||||||
| Projection |
getProjection()
Returns the projection of the points in the request.
| ||||||||||
| int |
hashCode()
Returns the hash value of this object.
| ||||||||||
| void |
setCustomParameter(String param, Variant value)
Sets a custom parameter for the the request.
| ||||||||||
| void |
setPointParameter(int index, String param, Variant value)
Sets the parameter value for the given routing point.
| ||||||||||
| String |
toString()
Creates a string representation of this request object, useful for logging.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Constructs a new RouteMatchingRequest instance from projection, measured points and accuracy.
| projection | The projection of the points. |
|---|---|
| points | The list of points to match. Must contains at least 1 element. |
| accuracy | Accuracy of the points in meters. |
Checks if this object is equal to the specified object.
| obj | The reference object. |
|---|
Returns the accuracy of the points in the request.
Returns the custom parameter value of the request.
| param | The name of the parameter to return. |
|---|
Returns the parameter value for the given routing point.
| index | The routing point index. |
|---|---|
| param | The name of the parameter. |
Returns the measured points of the request.
Returns the projection of the points in the request.
Returns the hash value of this object.
Sets a custom parameter for the the request.
| param | The name of the parameter. For example, "trace_options.search_radius". |
|---|---|
| value | The new value for the parameter. |
Sets the parameter value for the given routing point.
This is currently supported by Valhalla routing engine and can be used to specify initial or final heading, for example.
| index | The routing point index. |
|---|---|
| param | The name of the parameter to set. |
| value | The new value for the parameter of the given routing point. |
Creates a string representation of this request object, useful for logging.