[openstreetmap/openstreetmap-website] JSON output nodes, ways, relations, map (#2485)

Tom Hughes notifications at github.com
Sat Feb 29 15:31:40 UTC 2020

I've done a bit of a rework in aaf9d15d5679f97447be0a09790aa63fef0b9022 which is partly just making it more idiomatic ruby and partly slightly changing the way it interacts with rails.

The big issues requiring us to take so much control are (a) the JOSM issue and (b) the fact that rails doesn't really have a way to set a default format as such - it has a hardwired default of `:js` for XHR requests and `:html` for everything else. In fact that second one is the real problem because it we could set a default of `:xml` then it would be used when the JOSM accept failed to parse...

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200229/72522f10/attachment.htm>

More information about the rails-dev mailing list