Class Region

java.lang.Object
com.here.sdk.maploader.Region

public final class Region extends Object

Defines an area, especially part of a country or the world that can be downloaded.

  • Field Details

    • regionId

      @NonNull public RegionId regionId

      Unique identifier specifying a region.

    • name

      @NonNull public String name

      Name of region. Language is determined by the requested LanguageCode. By default, it is in LanguageCode.EN_US.

    • sizeOnDiskInBytes

      public long sizeOnDiskInBytes

      Represents the total size of the region on disk in bytes, assuming no pre-existing data on the disk. This value is a theoretical maximum for the region's size allocation. Note: If overlapping regions exist or data is already present on the disk, the actual size occupied might be less than this value due to shared or reused map data.

    • sizeOnNetworkInBytes

      public long sizeOnNetworkInBytes

      Region size, for downloading/during network operations, in bytes. Regions are downloaded in compressed form and hence they have reduced size on network. Note: This value represents the theoretical maximum size required for the region during transfer. If overlapping data already exists, the actual size downloaded may be smaller due to map data reuse.

    • childRegions

      @Nullable public List<Region> childRegions

      All child regions for current region. Note that each child can again contain multiple children. A downloadable region will contain the content of all children.

  • Constructor Details

    • Region

      public Region(@NonNull RegionId regionId)

      Creates a new instance.

      Parameters:
      regionId -

      Unique identifier specifying a region.

  • Method Details