public interface DistanceServiceRx
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Observable<com.mapbox.services.api.distance.v1.models.DistanceResponse> |
getObservable(java.lang.String userAgent,
java.lang.String user,
java.lang.String profile,
java.lang.String accessToken,
okhttp3.RequestBody coordinates)
Observable-based interface
|
@POST(value="distances/v1/{user}/{profile}")
io.reactivex.Observable<com.mapbox.services.api.distance.v1.models.DistanceResponse> getObservable(@Header(value="User-Agent")
java.lang.String userAgent,
@Path(value="user")
java.lang.String user,
@Path(value="profile")
java.lang.String profile,
@Query(value="access_token")
java.lang.String accessToken,
@Body
okhttp3.RequestBody coordinates)
userAgent - The User.user - The user.profile - Directions profile id.accessToken - Mapbox access token.coordinates - converted to a MultiPoint.toJson().DistanceResponse in a Observable wrapper