[OSM-dev] Timestamps

hy-soft hy-soft at sha-mash.de
Wed Dec 16 21:56:44 GMT 2009

Tom Hughes wrote:
> On 16/12/09 17:02, hy-soft wrote:
>> Tom Hughes wrote:

> That's certainly never been the case because no editor has ever provided
> the ability to set a date for an object in that way. The most they could
> ever have done is to set the date it was entered into the editor.
I think that has got nothing to do with the editor.
Because AFAIR the filled timestamp field was essential in 0.5
. Note that for successful processing, the file must contain trackpoints
(<trkpt>), not only waypoints, and the trackpoints must have a valid
timestamp. [/QUOTE]

> But, like I say, I don't believe the API has ever allowed them to even
> do that.
But it does, even if not allowed.

When I do an upload of a node via the api, every other tag looks fine,
but the datetime is set to  the time of upload.

I am sending this:
<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="yMap">
<node id="-6695" lat="47.909233333" lon="7.961633333" user="m*sh"
created_by="yMap" version="1" changeset="3389855" visible="true"
    <tag k="ele" v="1103"/>
    <tag k="source" v="survey"/>
    <tag k="tracktype" v="grade2"/>

And I get (from [Export-TAB] on the openstreetmap-page)

<node id="593961357" lat="47.9092333" lon="7.9616333" version="1"
changeset="3389855" user="m*sh" uid="44081" visible="true"
    <tag k="ele" v="1103"/>
    <tag k="source" v="survey"/>
    <tag k="tracktype" v="grade2"/>

So it obviously sets the time to the time of upload (today)

More information about the dev mailing list