com.baidubce.services.lps
Class LpsClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.lps.BaseLpsClient
          extended by com.baidubce.services.lps.LpsClient

public class LpsClient
extends BaseLpsClient

Lps Client which provides the ability to communicating with logistic map service.

Author:
weizhijun

Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
LpsClient()
          Construct a lps client with default settings.
LpsClient(BceClientConfiguration configuration)
          Construct a lps client with customized bce client configuration.
LpsClient(String accessKey, String secretKey)
          Construct a lps client access key, secret key and other default settings.
 
Method Summary
 DirectionResponse direction(DirectionRequest request)
          Direction the path between the given start point and end point, based on the given planning strategy.
 RouteMatrixResponse routeMatrix(RouteMatrixRequest request)
          Batch calculate the restriction, distance and duration information of the route according to the given point matrix (multiple start point and multiple end point).
 
Methods inherited from class com.baidubce.services.lps.BaseLpsClient
createRequest
 
Methods inherited from class com.baidubce.AbstractBceClient
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LpsClient

public LpsClient()
Construct a lps client with default settings.


LpsClient

public LpsClient(BceClientConfiguration configuration)
Construct a lps client with customized bce client configuration.

Parameters:
configuration - BceClientConfiguration

LpsClient

public LpsClient(String accessKey,
                 String secretKey)
Construct a lps client access key, secret key and other default settings.

Parameters:
accessKey - access key id
secretKey - secret key
Method Detail

direction

public DirectionResponse direction(DirectionRequest request)
Direction the path between the given start point and end point, based on the given planning strategy.

Parameters:
request - DirectionRequest
Returns:
DirectionResponse

routeMatrix

public RouteMatrixResponse routeMatrix(RouteMatrixRequest request)
Batch calculate the restriction, distance and duration information of the route according to the given point matrix (multiple start point and multiple end point).

Parameters:
request - RouteMatrixRequest
Returns:
RouteMatrixResponse


Copyright © 2020. All rights reserved.