Class ElevationResult

  • All Implemented Interfaces:
    java.io.Serializable

    public class ElevationResult
    extends java.lang.Object
    implements java.io.Serializable
    An Elevation API result.

    Units are in meters, per https://developers.google.com/maps/documentation/elevation/start.

    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      double elevation
      Elevation in meters.
      LatLng location
      Location of the elevation data.
      double resolution
      Maximum distance between data points from which the elevation was interpolated, in meters.
    • Constructor Summary

      Constructors 
      Constructor Description
      ElevationResult()  
    • 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

      • elevation

        public double elevation
        Elevation in meters.
      • location

        public LatLng location
        Location of the elevation data.
      • resolution

        public double resolution
        Maximum distance between data points from which the elevation was interpolated, in meters.
    • Constructor Detail

      • ElevationResult

        public ElevationResult()
    • Method Detail

      • toString

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