@Override
    public ApiException getError() {
      if (successful()) {
        return null;
      }
      return ApiException.from(status, errorMessage);
    }
Retrieves the elevation of a single location.

@param context The {@link GeoApiContext} to make requests through.
@param location The location to retrieve the elevation for.
@return The elevation as a {@link PendingResult}.
src/main/java/com/google/maps/ElevationApi.java