java.lang.Object
com.dlsc.gmapsfx.javascript.JavascriptObject
com.dlsc.gmapsfx.service.elevation.ElevationService
public class ElevationService extends JavascriptObject
Makes a request to the Google Maps Elevation Service.
Instances of this class are not safe for re-use at this stage. A new one should be created for each request.
- Author:
- Geoff Capper
-
Field Summary
Fields inherited from class com.dlsc.gmapsfx.javascript.JavascriptObject
jsObject, objectCounter, peerRegistry, runtime, variableName -
Constructor Summary
Constructors Constructor Description ElevationService() -
Method Summary
Modifier and Type Method Description voidgetElevationAlongPath(PathElevationRequest req, ElevationServiceCallback callback)Create a request for elevations for samples along a path.voidgetElevationForLocations(LocationElevationRequest req, ElevationServiceCallback callback)Create a request for elevations for multiple locations.voidprocessResponse(Object results, Object status)Processess the Javascript response and generates the required objects that are then passed back to the original callback.Methods inherited from class com.dlsc.gmapsfx.javascript.JavascriptObject
checkBoolean, checkInteger, checkUndefined, getJSObject, getNextVariableName, getProperty, getProperty, getVariableName, invokeJavascript, invokeJavascript, invokeJavascriptReturnValue, invokeJavascriptReturnValue, isMemberDefined, setProperty, setProperty, setProperty
-
Constructor Details
-
ElevationService
public ElevationService()
-
-
Method Details
-
getElevationForLocations
public void getElevationForLocations(LocationElevationRequest req, ElevationServiceCallback callback)Create a request for elevations for multiple locations.- Parameters:
req-callback-
-
getElevationAlongPath
Create a request for elevations for samples along a path.- Parameters:
req-callback-
-
processResponse
Processess the Javascript response and generates the required objects that are then passed back to the original callback.- Parameters:
results-status-
-