[openstreetmap/openstreetmap-website] JSON output nodes, ways, relations, map (#2485)
Andy Allan
notifications at github.com
Mon Dec 30 16:41:05 UTC 2019
gravitystorm commented on this pull request.
> @@ -0,0 +1,15 @@
+json.type "node"
+json.id node.id
+if node.visible
+ json.lat format("%.7f", node.lat.to_f)
We might be able to precisely control the output by creating a .to_json method, or similar. It'll probably require investigating exactly how the builder library code determines what to do with these custom objects though.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2485#discussion_r362035771
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191230/9f3cc3ae/attachment.html>
More information about the rails-dev
mailing list