SegmentDataLoader class abstract

Provides the abstract class for the access to the segments data available in the local OCM map.

Please be aware that the methods within this class load map data synchronously. In the event of absent data in the disk cache, the data will be retrieved from the remote server. To mitigate the potential freezing of the calling thread, it is advisable to proactively prefetch map data around the working area.

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

Constructors

SegmentDataLoader()
Creates a new instance of this class.
factory
SegmentDataLoader.withEngine(SDKNativeEngine sdkEngine)
Creates a new instance of this class.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

downloadFile(List<FileReference> fileReferences, DownloadingFileOptions downloadingOptions) → List<Uint8List>
Synchronously load the optional image providing guidance of a directed or non directed segment.
getSegmentsAroundCoordinates(GeoCoordinates coordinates, double radiusInMeters) → List<OCMSegmentId>
Loads the segments around a certain coordinates.
loadData(OCMSegmentId segment, SegmentDataLoaderOptions options) SegmentData
Synchronously load the data for the given map segment.
loadDirectedSegmentData(DirectedOCMSegmentId segment, SegmentDataLoaderOptions options) SegmentData
Synchronously load the data for the given map directed segment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited