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

mmd notifications at github.com
Thu Jan 2 13:42:00 UTC 2020


mmd-osm 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)

I moved formatting to Coord now, and added an _as_json_ method. It's a bit better now, quotation marks are gone, the number has at most 7 decimal places. What is missing is the fixed number of 7 decimal places.

-- 
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_r362476167
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20200102/e638f925/attachment.html>


More information about the rails-dev mailing list