Skip to content

Geo Zone incorrect. #698

@jefftrinh-natureeye

Description

@jefftrinh-natureeye

Hi team,

I’m seeing a strange issue. When using the Pilot app or searching on the web, if I look around the Boston (USA) area at coordinates 42.342023, -71.093854, I don’t see any Authorization Zones (blue zones). Everything is shown as Enhanced Warning Zones only.

However, when using my app with MSDK v5.17.0, I’m still receiving Authorization Zone data.
My code:


private final FlySafeNotificationListener flySafeNotificationListener = new FlySafeNotificationListener() {
        @Override
        public void onWarningNotificationUpdate(@NonNull FlySafeWarningInformation info) {
            // No code
        }

        @Override
        public void onSeriousWarningNotificationUpdate(@NonNull FlySafeSeriousWarningInformation info) {
//            flyZoneInformationDataProcessor.onNext(info.getFlyZoneInformation());
        }

        @Override
        public void onReturnToHomeNotificationUpdate(@NonNull FlySafeReturnToHomeInformation info) {
            // No code

        }

        @Override
        public void onTipNotificationUpdate(@NonNull FlySafeTipInformation info) {
            // No code
        }

        @Override
        public void onSurroundingFlyZonesUpdate(@NonNull List<FlyZoneInformation> infos) {
            flyZoneInformationDataProcessor.onNext(infos);
        }
    };

inSetup() {
  FlyZoneManager.getInstance().addFlySafeNotificationListener(flySafeNotificationListener);
}


// when takeoff call this function to update zones.
private void updateFlyZoneInformation() {
        LocationCoordinate2D location = KeyManager.getInstance().getValue(KeyTools.createKey(FlightControllerKey.KeyAircraftLocation));
        if (location == null) {
            return;
        }
        FlyZoneManager.getInstance().getFlyZonesInSurroundingArea(location, new CommonCallbacks.CompletionCallbackWithParam<List<FlyZoneInformation>>() {
            @Override
            public void onSuccess(List<FlyZoneInformation> flyZoneInformation) {
                flyZoneInformationDataProcessor.onNext(flyZoneInformation);
            }

            @Override
            public void onFailure(@NonNull IDJIError error) {
                //do nothing
            }
        });
    }

Based on what I’ve researched, in the USA Authorization Zones, Restricted Zones, and similar zones have been removed and replaced with Enhanced Warning Zones. In this case, how can I receive accurate zone data without having to remove the code that renders Authorization Zones?

Thanks!.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions