iandees/xapi-servlet

Add xapi:planetDate attribute to root element

Closed this issue · 7 comments

The regular XAPI includes a number of additional attributes in the root element, which are not included in the jXAPI implementation. One of these is xapi:planetDate, whose value is a numerical time-stamp string of the form YYYYMMDDhhmm, and which indicated the time associated with the OSM data snapshot used obtain the results.

This timestamp is useful for checking how recent the returned data is, and also for debugging problems. Could it be added to the data returned by jXAPI?

I'd also like to have this.
It makes the oldXAPI incompatible with the new JXAPI.

Ditto.

Without this, I have no confidence that the server is sending data that is remotely up-to-date.

This has been added at the expense of removing PBF and JSON support for now.

Forgot to add that the timestamp is a UNIX timestamp, not a year/month/day formatted text field.

how does adding one xml attribute an expense of removing PBF and JSON support? Forgive me, but maybe java and xml don't mix as easily as they should?

Were you using PBF or JSON? I haven't seen anyone actually use it so I
didn't feel like it was worth spending the time to implement the planetDate
in the other output formats.

On Mon, Jun 20, 2011 at 11:41 PM, jharris847 <
reply@reply.github.com>wrote:

how does adding one xml attribute an expense of removing PBF and JSON
support? Forgive me, but maybe java and xml don't mix as easily as they
should?

Reply to this email directly or view it on GitHub:
#5 (comment)

No, I wasn't using PBF or JSON, but your comment lead me to believe that adding a planetDate was completely incompatible with PBF or JSON.

I am satisfied with the planetDate now appearing in the XML returned from the jxapi.