[openstreetmap-website] note gpx format of a limited use (#457)
richlv
notifications at github.com
Tue Aug 20 16:56:59 UTC 2013
notes can be exported to gpx, but the currently used format is of little use - assuming that the primary usecase is for users to upload these to their gps devices and survey the situation.
the problem is in the description tag. an example :
```
<desc>
<![CDATA[<div>
<div class="note-comment" style="margin-top: 5px">
<div class="note-comment-description" style="font-size: smaller; color: #999999">Created <span title=" 7 August 2013 at 16:37">13 days</span> ago by <a href="http://api.openstreetmap.org/user/extropy">extropy</a></div>
<div class="note-comment-text">tram stop no more</div>
</div>
</div>
]]>
</desc>
```
notice how it includes css and other quite useless information for a gpx file.
suggestion : strip it all, only leave in comment, author and timestamp.
for example :
$comment (by $author at $date, $days ago)
reasoning - gps units have limited amount of space for waypoint descriptions, thus we leave the comment as the first entry (the most important), followed by other information
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/457
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130820/43517d6b/attachment.html>
More information about the rails-dev
mailing list