[OSM-talk] Idle thought time, PBF and JOSM

Ian ian.dees at gmail.com
Fri Dec 23 02:43:34 GMT 2011


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 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20111222/ca3443c6/attachment.html>


More information about the talk mailing list