public abstract static class MapMatchingResponse.Builder
extends java.lang.Object
MapMatchingResponse
.Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
abstract MapMatchingResponse |
build()
Build a new
MapMatchingResponse object. |
abstract MapMatchingResponse.Builder |
code(java.lang.String code)
A string depicting the state of the response.
|
abstract MapMatchingResponse.Builder |
matchings(java.util.List<MapMatchingMatching> matchings)
List of
MapMatchingMatching objects, essentially a DirectionsWaypoint object with the
addition of a confidence value. |
abstract MapMatchingResponse.Builder |
message(java.lang.String message)
Optionally shows up in a map maptching response if an error or something unexpected occurred.
|
abstract MapMatchingResponse.Builder |
tracepoints(java.util.List<MapMatchingTracepoint> tracepoints)
A list of
MapMatchingTracepoint objects representing the location an input point was
matched with. |
public abstract MapMatchingResponse.Builder code(@Nullable java.lang.String code)
mapbox.driving
, mapbox.walking
,
or mapbox.cycling
.code
- string containing the codepublic abstract MapMatchingResponse.Builder message(@Nullable java.lang.String message)
message
- a string containing the message API MapMatching response with if an error
occurredpublic abstract MapMatchingResponse.Builder matchings(@Nullable java.util.List<MapMatchingMatching> matchings)
MapMatchingMatching
objects, essentially a DirectionsWaypoint object with the
addition of a confidence value.matchings
- a list made up of MapMatchingMatching
objectspublic abstract MapMatchingResponse.Builder tracepoints(@Nullable java.util.List<MapMatchingTracepoint> tracepoints)
MapMatchingTracepoint
objects representing the location an input point was
matched with. list of Waypoint objects representing all input points of the trace in the
order they were matched. If a trace point is omitted by map matching because it is an
outlier, the entry will be null.tracepoints
- tracepoints listpublic abstract MapMatchingResponse build()
MapMatchingResponse
object.MapMatchingResponse
using the provided values in this builder