Package com.mapsindoors.mapssdk
Class DistanceMatrixResponse
- java.lang.Object
-
- com.mapsindoors.mapssdk.DistanceMatrixResponse
-
public class DistanceMatrixResponse extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DistanceMatrixResponse.DistanceMatrixElement
class
DistanceMatrixResponse.Row
class
DistanceMatrixResponse.TextPair
-
Constructor Summary
Constructors Constructor Description DistanceMatrixResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElementRow(java.util.List<DistanceMatrixResponse.DistanceMatrixElement> elementRow)
DistanceMatrixResponse.DistanceMatrixElement
createElement(DistanceMatrixResponse.TextPair distance, DistanceMatrixResponse.TextPair duration, java.lang.String status)
DistanceMatrixResponse.TextPair
createTextPair(java.lang.String text, java.lang.String value)
java.util.List<java.lang.String>
getDestinations()
java.lang.String
getErrorMessage()
java.util.List<java.lang.String>
getOrigins()
java.util.List<DistanceMatrixResponse.Row>
getRows()
java.lang.String
getStatus()
Returns the response status
-
-
-
Method Detail
-
getDestinations
@NonNull public java.util.List<java.lang.String> getDestinations()
-
getOrigins
@NonNull public java.util.List<java.lang.String> getOrigins()
-
getRows
@NonNull public java.util.List<DistanceMatrixResponse.Row> getRows()
-
getStatus
public java.lang.String getStatus()
Returns the response status- Returns:
- A
DistanceMatrixStatus
value
-
getErrorMessage
@Nullable public java.lang.String getErrorMessage()
-
addElementRow
public void addElementRow(java.util.List<DistanceMatrixResponse.DistanceMatrixElement> elementRow)
-
createElement
public DistanceMatrixResponse.DistanceMatrixElement createElement(DistanceMatrixResponse.TextPair distance, DistanceMatrixResponse.TextPair duration, java.lang.String status)
-
createTextPair
public DistanceMatrixResponse.TextPair createTextPair(java.lang.String text, java.lang.String value)
-
-