Follow us on GitHub

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

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

public class PathElevationRequest
extends JavaScriptObject

An elevation query sent by the ElevationService containing the path along which to return sampled data. This request defines a continuous path along the earth along which elevation samples should be taken at evenly-spaced distances. All paths from vertex to vertex use segments of the great circle between those two points.

See PathElevationRequest API Doc


Constructor Summary
protected PathElevationRequest()
          use newInstance();
 
Method Summary
 JsArray<LatLng> getPath()
          The path along which to collect elevation values.
 int getSamples()
          Required.
static PathElevationRequest newInstance()
          An elevation query sent by the ElevationService containing the path along which to return sampled data.
 void setPath(JsArray<LatLng> path)
          The path along which to collect elevation values.
 void setSamples(int samples)
          Required.
 
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

PathElevationRequest

protected PathElevationRequest()
use newInstance();

Method Detail

newInstance

public static final PathElevationRequest newInstance()
An elevation query sent by the ElevationService containing the path along which to return sampled data. This request defines a continuous path along the earth along which elevation samples should be taken at evenly-spaced distances. All paths from vertex to vertex use segments of the great circle between those two points.


setPath

public final void setPath(JsArray<LatLng> path)
The path along which to collect elevation values.

Parameters:
path -

getPath

public final JsArray<LatLng> getPath()
The path along which to collect elevation values.


setSamples

public final void setSamples(int samples)
Required. The number of equidistant points along the given path for which to retrieve elevation data, including the endpoints. The number of samples must be a value between 2 and 1024.

Parameters:
samples -

getSamples

public final int getSamples()
Required. The number of equidistant points along the given path for which to retrieve elevation data, including the endpoints. The number of samples must be a value between 2 and 1024.



Follow us on GitHub

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