public class ElevationApi
extends java.lang.Object
The Google Elevation API provides you a simple interface to query locations on the earth for elevation data. Additionally, you may request sampled elevation data along paths, allowing you to calculate elevation changes along routes.
See documentation.
Modifier and Type | Method and Description |
---|---|
static PendingResult<ElevationResult[]> |
getByPath(GeoApiContext context,
int samples,
EncodedPolyline encodedPolyline)
See documentation.
|
static PendingResult<ElevationResult[]> |
getByPath(GeoApiContext context,
int samples,
LatLng... path)
See documentation.
|
static PendingResult<ElevationResult> |
getByPoint(GeoApiContext context,
LatLng point)
Retrieve the elevation of a single point.
|
static PendingResult<ElevationResult[]> |
getByPoints(GeoApiContext context,
EncodedPolyline encodedPolyline)
Retrieve the elevations of an encoded polyline path.
|
static PendingResult<ElevationResult[]> |
getByPoints(GeoApiContext context,
LatLng... points)
See documentation.
|
public static PendingResult<ElevationResult[]> getByPoints(GeoApiContext context, LatLng... points)
public static PendingResult<ElevationResult[]> getByPath(GeoApiContext context, int samples, LatLng... path)
public static PendingResult<ElevationResult[]> getByPath(GeoApiContext context, int samples, EncodedPolyline encodedPolyline)
public static PendingResult<ElevationResult> getByPoint(GeoApiContext context, LatLng point)
For more detail, please see the documentation.
public static PendingResult<ElevationResult[]> getByPoints(GeoApiContext context, EncodedPolyline encodedPolyline)
See documentation.