Follow us on GitHub

com.google.gwt.maps.client.services
Class ElevationResult

java.lang.Object
  extended by com.google.gwt.core.client.JavaScriptObject
      extended by com.google.gwt.maps.client.services.ElevationResult

public class ElevationResult
extends JavaScriptObject

The result of an ElevationService request, consisting of the set of elevation coordinates and their elevation values. Note that a single request may produce multiple ElevationResults.

See ElevationResult API Doc


Constructor Summary
protected ElevationResult()
          this will be generated from the ElevationService use newInstatnce();
 
Method Summary
 double getElevation()
          The elevation of this point on Earth, in meters above sea level.
 LatLng getLocation()
          The location of this elevation result.
 double getResolution()
          The distance, in meters, between sample points from which the elevation was interpolated.
static ElevationResult newInstance()
          The result of an ElevationService request, consisting of the set of elevation coordinates and their elevation values.
 void setElevation(double elevation)
          The elevation of this point on Earth, in meters above sea level.
 void setLocation(LatLng location)
          The location of this elevation result.
 void setResolution(double resolution)
          The distance, in meters, between sample points from which the elevation was interpolated.
 
Methods inherited from class com.google.gwt.core.client.JavaScriptObject
cast, createArray, createFunction, createObject, equals, hashCode, toSource, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ElevationResult

protected ElevationResult()
this will be generated from the ElevationService use newInstatnce();

Method Detail

newInstance

public static final ElevationResult newInstance()
The result of an ElevationService request, consisting of the set of elevation coordinates and their elevation values. Note that a single request may produce multiple ElevationResults.


setElevation

public final void setElevation(double elevation)
The elevation of this point on Earth, in meters above sea level.

Parameters:
elevation -

getElevation

public final double getElevation()
The elevation of this point on Earth, in meters above sea level.


setLocation

public final void setLocation(LatLng location)
The location of this elevation result.

Parameters:
location -

getLocation

public final LatLng getLocation()
The location of this elevation result.


setResolution

public final void setResolution(double resolution)
The distance, in meters, between sample points from which the elevation was interpolated. This property will be missing if the resolution is not known. Note that elevation data becomes more coarse (larger resolution values) when multiple points are passed. To obtain the most accurate elevation value for a point, it should be queried independently.

Parameters:
resolution -

getResolution

public final double getResolution()
The distance, in meters, between sample points from which the elevation was interpolated. This property will be missing if the resolution is not known. Note that elevation data becomes more coarse (larger resolution values) when multiple points are passed. To obtain the most accurate elevation value for a point, it should be queried independently.



Follow us on GitHub

Copyright © 2011-2012 Gone Vertical LLC. All Rights Reserved.