Send feedback
  
   
 
  
    
      Class /GOOG/CL_DISTANCE_MATRIX 
  
  
  
   
  
    
  
  
    
    
    
  
  
  
  
  On-premises or any cloud edition v1.12keyboard_arrow_down  
  
 
  
  
Class 
/GOOG/CL_DISTANCE_MATRIX 
Inheriting from:/GOOG/CL_HTTP_CLIENT 
Description:Google Maps Platform Distance Matrix API   
For general information about a class in ABAP SDK for Google Cloud,
see 
API client stub .
Types 
Type 
Description 
Visibility 
 
 
TY_T_STRINGTable of StringPUBLIC 
 
Constants 
Name 
Type 
Description 
Value 
Visibility 
 
 
C_CLOUD_VERSION/GOOG/SDK_VERSIONLowest Cloud Version 
1.0 
PUBLIC 
 
C_ON_PREM_VERSION/GOOG/SDK_VERSIONLowest On-premises Version 
1.5 
PUBLIC 
 
C_PATH_PREFIXSTRINGAPI Path Prefix 
PUBLIC 
 
C_ROOT_URLSTRINGAPI Root URL 
https://maps.googleapis.com 
PUBLIC 
 
C_SERVICE_NAME/GOOG/SERVICE_NAMEGoogle Service Name 
distance_matrix 
PUBLIC 
 
C_SUPPORTED_AUTH/GOOG/SUPP_AUTHSupported Auth Types 
AAAAAA 
PUBLIC 
 
C_VERSIONSTRINGOpen API Specification Version 
1.22.5 
PUBLIC 
 
Methods 
For general information about a method in ABAP SDK for Google Cloud,
see 
API method .
CONSTRUCTOR 
Description: Constructor  
Visibility: PUBLIC  
 
Parameters 
Name 
Category 
Type 
Description 
 
 
IV_KEY_NAMEIMPORTING 
/GOOG/KEYNAMEGoogle Cloud Key Name 
 
IV_LOG_OBJIMPORTING 
BALOBJ_DApplication log: Object name (Application code) 
 
IV_LOG_SUBOBJIMPORTING 
BALSUBOBJApplication Log: Subobject 
 
Exception 
Name 
Description 
 
  
/GOOG/CX_SDKABAP SDK for Google Cloud: Exception Class 
 
DISTANCE_MATRIX 
Description: distanceMatrix  
Visibility: PUBLIC  
 
Parameters 
Name 
Category 
Type 
Description 
 
 
IT_Q_DESTINATIONSIMPORTING 
TY_T_STRINGDestinations 
 
IT_Q_ORIGINSIMPORTING 
TY_T_STRINGOrigins 
 
IV_Q_ARRIVAL_TIMEIMPORTING 
/GOOG/NUM_FLOATArrival Time 
 
IV_Q_DEPARTURE_TIMEIMPORTING 
/GOOG/NUM_FLOATDeparture Time 
 
IV_Q_AVOIDIMPORTING 
STRINGAvoid 
 
IV_Q_UNITSIMPORTING 
STRINGUnits 
 
IV_Q_LANGUAGEIMPORTING 
STRINGLanguage 
 
IV_Q_MODEIMPORTING 
STRINGMode 
 
IV_Q_REGIONIMPORTING 
STRINGRegion 
 
IV_Q_TRAFFIC_MODELIMPORTING 
STRINGTraffic Model 
 
IV_Q_TRANSIT_MODEIMPORTING 
STRINGTransit Mode 
 
IV_Q_TRANSIT_ROUTING_PREFER000IMPORTING 
STRINGTransit Routing Preference 
 
ES_RAWEXPORTING 
DATARaw Output Data 
 
ES_OUTPUTEXPORTING 
/GOOG/IF_MAPS~TY_014DistanceMatrixResponse 
 
EV_RET_CODEEXPORTING 
IReturn Code 
 
EV_ERR_TEXTEXPORTING 
STRINGError Text 
 
ES_ERR_RESPEXPORTING 
/GOOG/ERR_RESPError Response 
 
Exception 
Name 
Description 
 
  
/GOOG/CX_SDKABAP SDK for Google Cloud: Exception Class 
 
CLOSE 
Description: Close Connection  
Visibility: PUBLIC  
 
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-28 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-28 UTC."],[],[]]