Download an object
Getting data from Lattice using the SDK
In Lattice, an object is a data model that represents a single file or a piece of data. This page explains how to retrieve objects from Lattice.
In Lattice, an object is a data model that represents a single file or a piece of data. To download a specific binary object from Lattice using its unique object path, do the following:
When using the DownloadObject API, you must specify the object path of the object you want to download at runtime.
In the previous procedure, you uploaded the following objects:
.jpg image at the following path: /api/v1/objects/cessna.jpg.
This image is a thumbnail of its associated track entity..csv file at the following path: /api/v1/objects/manifest.csv.
This serves as metadata, in this case, a vessel manifest for the associated entity.
Choose one, and note the object path.Run the following code in the directory where you’d like to download the object.
To download, use the GetObject operation.
Replace the following:
object_path: the unique path of the object in Lattice.