public interface DistanceServiceRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Observable<com.mapbox.services.api.distance.v1.models.DistanceResponse> |
getObservable(String userAgent,
String user,
String profile,
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") String userAgent, @Path(value="user") String user, @Path(value="profile") String profile, @Query(value="access_token") 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© 2015–2016 Mapbox. All rights reserved.