public class MapboxMapMatching extends MapboxService<MapMatchingResponse>
The Mapbox Map Matching API snaps fuzzy, inaccurate traces from a GPS unit or a phone to the OpenStreetMap road and path network using the Directions API. This produces clean paths that can be displayed on a map or used for other analysis.
| Modifier and Type | Class and Description |
|---|---|
static class |
MapboxMapMatching.Builder<T extends MapboxMapMatching.Builder>
Builds your map matching query by adding parameters.
|
| Modifier and Type | Field and Description |
|---|---|
protected MapboxMapMatching.Builder |
builder |
| Modifier | Constructor and Description |
|---|---|
protected |
MapboxMapMatching(MapboxMapMatching.Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelCall()
Cancel the call
|
retrofit2.Call<MapMatchingResponse> |
cloneCall()
clone the call
|
void |
enqueueCall(retrofit2.Callback<MapMatchingResponse> callback)
Execute the call
|
retrofit2.Response<MapMatchingResponse> |
executeCall()
Execute the call
|
retrofit2.Call<MapMatchingResponse> |
getCall()
Used internally.
|
getCallFactory, getHeaderUserAgent, getOkHttpClient, isEnableDebug, setCallFactory, setEnableDebugprotected MapboxMapMatching.Builder builder
protected MapboxMapMatching(MapboxMapMatching.Builder builder)
public retrofit2.Call<MapMatchingResponse> getCall()
public retrofit2.Response<MapMatchingResponse> executeCall() throws java.io.IOException
executeCall in class MapboxService<MapMatchingResponse>java.io.IOException - Signals that an I/O exception of some sort has occurred.public void enqueueCall(retrofit2.Callback<MapMatchingResponse> callback)
enqueueCall in class MapboxService<MapMatchingResponse>callback - A Retrofit callback.public void cancelCall()
cancelCall in class MapboxService<MapMatchingResponse>public retrofit2.Call<MapMatchingResponse> cloneCall()
cloneCall in class MapboxService<MapMatchingResponse>