Follow us on GitHub

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

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

public class ElevationService
extends JavaScriptObject

Defines a service class that talks directly to Google servers for requesting elevation data.

See ElevationService API Doc


Constructor Summary
protected ElevationService()
          use newInstance();
 
Method Summary
 void getElevationAlongPath(PathElevationRequest request, ElevationServiceHandler handler)
          Makes an elevation request along a path, where the elevation data are returned as distance-based samples along that path.
 void getElevationForLocations(LocationElevationRequest request, ElevationServiceHandler handler)
          Makes an elevation request for a list of discrete locations.
static ElevationService newInstance()
          Creates a new instance of a ElevationService that sends elevation queries to Google servers.
 
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

ElevationService

protected ElevationService()
use newInstance();

Method Detail

newInstance

public static final ElevationService newInstance()
Creates a new instance of a ElevationService that sends elevation queries to Google servers.


getElevationAlongPath

public final void getElevationAlongPath(PathElevationRequest request,
                                        ElevationServiceHandler handler)
Makes an elevation request along a path, where the elevation data are returned as distance-based samples along that path.

Parameters:
request -
handler -

getElevationForLocations

public final void getElevationForLocations(LocationElevationRequest request,
                                           ElevationServiceHandler handler)
Makes an elevation request for a list of discrete locations.

Parameters:
request -
handler -


Follow us on GitHub

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