+ const blob = new Blob([JSON.stringify(polyline.toGeoJSON())], { type: "application/json" });
+ URL.revokeObjectURL(downloadURL);
+ downloadURL = URL.createObjectURL(blob);
+
+ $("#sidebar_content").append(`<p class="text-center"><a href="${downloadURL}" download="${
+ I18n.t("javascripts.directions.filename")
+ }">${
+ I18n.t("javascripts.directions.download")
+ }</a></p>`);
+