Skip to main content

Custom Flight Areas

In addition to the pre-configured GEO-Zone defined globally by DJI FlySafe, users can configure geo-fences or no-fly zones on the DJI Dock to meet any specific operational requirements.

Services

/dji/areas/import

DescriptionStore custom flight areas description in cloud storage.
RequestCustom Flight Areas description
ResponseNone
DJI BindingsN/A

/dji/areas/export

DescriptionGet custom flight areas description currently stored in cloud storage.
RequestNone
ResponseCustom Flight Areas description
DJI BindingsN/A

/dji/areas/deploy

DescriptionForce DJI Dock to sync the custom flight areas descriptions from cloud on the aircraft. This call is non-blocking, sync progress is reported on the progress subtopic.
RequestNone
ResponseNone
DJI BindingsService flight_areas_update

Telemetry

/dji/areas/alarms

DescriptionArray of active custom flight areas
PushEvery 2s when localized
Type[]AreaAlarm
DJI BindingsEvent flight_areas_drone_location

/dji/areas/deploy/progress

DescriptionProgress update on areas file syncing from cloud to aircraft
PushEvery 2s when syncing
Type[]DeployProgress
DJI BindingsEvent flight_areas_sync_progress

Schemas

AreaAlarm

KeyTypeDescription
areaIdstringUnique ID for the custom flight area as defined in the JSON description file.
distancefloatDistance between the aircraft and the boundary of the area in m.
isInsideboolTrue if the aircraft is inside the area. False otherwise.

Sample

{
"areaId": "nfz-002",
"distance": 62.12,
"isInside": false,
}

DeployProgress

KeyTypeDescription
statusstringStatus of the deploy process. Possible value are "unknown", "deploy failed", "switch failed", "delayed", "in progress" and "completed".
reasonstringReason for the current deploy process status.

Sample

{
"status": "deploy failed",
"reason": "failed to get file information on the aircraft side"
}