RouteDataPackageGenerator
Converts route CoT XML (b-m-r) into ATAK-importable KML data packages.
ATAK silently ignores route CoT events received over TCP streaming connections — it only accepts routes from KML/GPX file import, TAK Server mission sync, or data packages auto-imported from the monitored directory /sdcard/atak/tools/datapackage/. This generator bridges the gap by extracting waypoints from the SDK-reconstructed route XML and packaging them as a KML LineString inside a MissionPackageManifest v2 zip.
Functions
Link copied to clipboard
Generate a complete ATAK data package (zip) containing the route as KML. Returns (fileName, zipBytes) or null if the route XML can't be parsed.
Link copied to clipboard
Extract waypoints from route CoT XML and generate a KML LineString. Returns null if fewer than 2 waypoints are found.