Class DistanceMatrix

  • All Implemented Interfaces:
    java.io.Serializable

    public class DistanceMatrix
    extends java.lang.Object
    implements java.io.Serializable
    A complete result from a Distance Matrix API call.
    See Also:
    Distance Matrix Results, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.String[] destinationAddresses
      Destination addresses as returned by the API from your original request.
      java.lang.String[] originAddresses
      Origin addresses as returned by the API from your original request.
      DistanceMatrixRow[] rows
      An array of elements, each of which in turn contains a status, duration, and distance element.
    • Constructor Summary

      Constructors 
      Constructor Description
      DistanceMatrix​(java.lang.String[] originAddresses, java.lang.String[] destinationAddresses, DistanceMatrixRow[] rows)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • originAddresses

        public final java.lang.String[] originAddresses
        Origin addresses as returned by the API from your original request. These are formatted by the geocoder and localized according to the language parameter passed with the request.
      • destinationAddresses

        public final java.lang.String[] destinationAddresses
        Destination addresses as returned by the API from your original request. As with originAddresses, these are localized if appropriate.
      • rows

        public final DistanceMatrixRow[] rows
        An array of elements, each of which in turn contains a status, duration, and distance element.
    • Constructor Detail

      • DistanceMatrix

        public DistanceMatrix​(java.lang.String[] originAddresses,
                              java.lang.String[] destinationAddresses,
                              DistanceMatrixRow[] rows)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object