public abstract static class MapMatchingTracepoint.Builder
extends java.lang.Object
MapMatchingTracepoint
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract MapMatchingTracepoint.Builder |
alternativesCount(java.lang.Integer alternativesCount)
Number of probable alternative matchings for this trace point.
|
abstract MapMatchingTracepoint |
build()
Build a new
MapMatchingTracepoint object. |
abstract MapMatchingTracepoint.Builder |
matchingsIndex(java.lang.Integer matchingsIndex)
Index to the match object in matchings the sub-trace was matched to.
|
abstract MapMatchingTracepoint.Builder |
name(java.lang.String name)
Provides the way name which the waypoint's coordinate is snapped to.
|
abstract MapMatchingTracepoint.Builder |
rawLocation(double[] rawLocation)
The rawLocation as a double array.
|
abstract MapMatchingTracepoint.Builder |
waypointIndex(java.lang.Integer waypointIndex)
Index of the waypoint inside the matched route.
|
public abstract MapMatchingTracepoint.Builder rawLocation(double[] rawLocation)
MapMatchingTracepoint
object's created,
this raw location gets converted into a Point
object and is public exposed as such.
The double array should have a length of two, index 0 being the longitude and index 1 being
latitude.rawLocation
- a double array with a length of two, index 0 being the longitude and
index 1 being latitude.Point
objectpublic abstract MapMatchingTracepoint.Builder matchingsIndex(@Nullable java.lang.Integer matchingsIndex)
matchingsIndex
- index valuepublic abstract MapMatchingTracepoint.Builder alternativesCount(@Nullable java.lang.Integer alternativesCount)
alternativesCount
- an integer representing the alternatives countpublic abstract MapMatchingTracepoint.Builder waypointIndex(@Nullable java.lang.Integer waypointIndex)
waypointIndex
- index valuepublic abstract MapMatchingTracepoint.Builder name(@Nullable java.lang.String name)
name
- string with the name of the way the coordinate snapped topublic abstract MapMatchingTracepoint build()
MapMatchingTracepoint
object.MapMatchingTracepoint
using the provided values in this builder