Class TileGeoBoundsCalculator

java.lang.Object
com.here.NativeBase
com.here.sdk.mapview.datasource.TileGeoBoundsCalculator

public final class TileGeoBoundsCalculator extends NativeBase

A calculator of geodetic bounds for tiles identified by keys generated in a particular tiling scheme (TilingScheme).

Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.

  • Constructor Details

    • TileGeoBoundsCalculator

      public TileGeoBoundsCalculator(@NonNull TilingScheme tilingScheme)

      Creates an instance of TileGeoBoundsCalculator.

      Parameters:
      tilingScheme -

      The tiling scheme used for generating the tile keys that are to be supported by this instance.

  • Method Details

    • boundsOf

      @NonNull public GeoBox boundsOf(@NonNull TileKey tileKey)

      Computes the geodetic bounds (as GeoBox) for a tile identified by TileKey.

      Parameters:
      tileKey -

      TileKey to compute geodetic bounds for. The geodetic bounds would be calculated relative to the tiling scheme provided at this TileGeoBoundsCalculator instance creation.

      Returns:

      The geodetic bounds of tile identified by given TileKey.