import { BaseBuilder } from 'gpx-builder'; import { OsmAndPoint } from './models/OsmAndPoint.ts'; export class OsmAndBuilder extends BaseBuilder { public static MODELS = { ...BaseBuilder.MODELS, Point: OsmAndPoint, }; /** * OsmAnd builder includes extensions for waypoint customization: * https://osmand.net/docs/technical/osmand-file-formats/osmand-gpx/#waypoints-customization */ public constructor() { super(); this.data = { ...this.data, attributes: { ...this.data.attributes, 'xmlns:osmand': 'https://osmand.net/docs/technical/osmand-file-formats/osmand-gpx', }, }; } }