Making every drone flight safe and intelligent
DroneDetour is a Java-based library with an Android demo that implements an intelligent UAV detour path planning algorithm.
It enables autonomous drones to calculate the shortest safe flight route around multiple polygonal no-fly zones, ensuring reliable navigation even under GPS-degraded or restricted environments.
- 🚫 Support for multiple polygonal no-fly zones
- 🧭 Automatic shortest detour route calculation
- ⚙️ Configurable safeBuffer (e.g., 10 meters)
- 📱 Android demo for visualization and testing
- 💡 Pure Java library — easy to integrate into flight control or simulation systems
Copy the lib_detour module into your project.
List<MyLatLng> noFlyZone = new ArrayList<MyLatLng>();
noFlyZone.add(.);//no fly zone border point
List<List<MyLatLng>> noFlyZones = new ArrayList<List<MyLatLng>>();
noFlyZones.add(noFlyZone);
//1. update no fly zones
DetourPathManager.getsInstance().updateNoFlyZones(noFlyZones);
//2. calculate the shortest detour path
MyLatLng startPoint = new MyLatLng(36.1234132, 120.333345);
MyLatLng endPoint = new MyLatLng(36.1234132, 120.333345);
//3. get the detour path
List<MyLatLng> detourPath = DetourPathManager.getsInstance().calculateDetourPath(List.of(startPoint, endPoint));Across noFlyZones
Detour path
-
Machine Learning-based path optimization
-
Swarm coordination algorithms
-
Real-time weather integration
-
Extended no-fly zone database
Meng Xu(许萌)
📧 [email protected]
💻 GitHub: xumeng367
This project is licensed under the MIT License.
You are free to use, modify, and distribute it — but please retain author attribution.
If you find DroneDetour useful, please give us a star ⭐ on GitHub! This helps us reach more developers and continue improving the library.
Made with ❤️ by Meng Xu
Making every drone flight safe and intelligent.


