Open decentral1se opened 1 year ago
Indeed : looking here it is special XML attributes for osmand.
Saved within a waypoint node it seems :
<gpx version="1.1" creator="OsmAnd" xmlns="http://www.topografix.com/GPX/1/1" xmlns:osmand="https://osmand.net" xmlns:test="https://test.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<wpt lat="37.5460870" lon="-77.4532843">
<time>2023-06-07T12:31:35Z</time>
<name>Test</name>
<type>SOTM</type>
<extensions>
<osmand:address>Floyd Avenue (The Fan) 907, Richmond</osmand:address>
<osmand:icon>place_town</osmand:icon>
<osmand:background>circle</osmand:background>
<osmand:color>#ff4e4eff</osmand:color>
<test:country>United States</test:country>
<test:state>Virginia</test:state>
<test:telephone>(804) 828-0100</test:telephone>
<test:postcode>23284</test:postcode>
<test:start_date>Thursday, June 8, 2023</test:start_date>
</extensions>
</wpt>
</gpx>
Nice! It seems that KML (and also KMZ?) is another format that is pretty standard: https://en.wikipedia.org/wiki/Keyhole_Markup_Language Maybe secondary to GPX which OSM-based apps seem to consume.
(For whenever you get there!)
If you could hit, say,
/api/${map_name}/export
or something like that, and it spat out the machine readable format of the map points/notes (GPX file or?), that would already be a workaround for "OSMAnd sync" (and probably most apps that support OSM) while this is still coming together?I even think it maybe would be the more portable/futureproof option than setting up some potentially complicated app specific sync setup? Also, I think you can embed GPX files in HTML and such.