public class ElevationApi
extends java.lang.Object
| Modifier and Type | Method | 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 location) |
Retrieves the elevation of a single location.
|
static PendingResult<ElevationResult[]> |
getByPoints(GeoApiContext context,
EncodedPolyline encodedPolyline) |
Retrieves the elevations of an encoded polyline path.
|
static PendingResult<ElevationResult[]> |
getByPoints(GeoApiContext context,
LatLng... points) |
Gets a list of elevations for a list of points.
|
public static PendingResult<ElevationResult[]> getByPoints(GeoApiContext context, LatLng... points)
context - The GeoApiContext to make requests through.points - The points to retrieve elevations for.PendingResult.public static PendingResult<ElevationResult[]> getByPath(GeoApiContext context, int samples, LatLng... path)
context - The GeoApiContext to make requests through.samples - The number of samples to retrieve heights along path.path - The path to sample.PendingResult.public static PendingResult<ElevationResult[]> getByPath(GeoApiContext context, int samples, EncodedPolyline encodedPolyline)
context - The GeoApiContext to make requests through.samples - The number of samples to retrieve heights along encodedPolyline.encodedPolyline - The path to sample as an encoded polyline.PendingResult.public static PendingResult<ElevationResult> getByPoint(GeoApiContext context, LatLng location)
context - The GeoApiContext to make requests through.location - The location to retrieve the elevation for.PendingResult.public static PendingResult<ElevationResult[]> getByPoints(GeoApiContext context, EncodedPolyline encodedPolyline)
context - The GeoApiContext to make requests through.encodedPolyline - The encoded polyline to retrieve elevations for.PendingResult.