On Thursday, December 22, 2011 10:48:19 AM UTC-6, Tom Hughes wrote: > On 22/12/11 16:14, Michal Migurski wrote: > > > +1 on Frederick's suggestion, with the caveat that it should be possible > to override the Accept request header with a "?type=pbf" argument or > similar. > > Why on earth are we still bikeshedding this? > > It's not rocket science to add extra response formats and we know > exactly how we will do it. Hell there's even code kicking around to do > it, we just need to get around to finishing it off. > Newish jxapi installs (the .war on the jxapi github page) will support PBF output last I checked. Unfortunately, I don't think any currently-running public jxapi instances have the latest code. I will ask MQ to update what they have.
The jxapi currently uses path suffixes to determine response format, but the HTTP Accepts header is probably the best way to do it. Here's an example of a query that works on my local dev instance: http://localhost:8080/xapi/api/0.6/node/123456.pbf it also supports JSON: http://localhost:8080/xapi/api/0.6/node/123456.json
_______________________________________________ talk mailing list [email protected] http://lists.openstreetmap.org/listinfo/talk

