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

mmd notifications at github.com
Mon Dec 30 16:30:07 UTC 2019

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)

Well,  .to_f omits the quotation issue. However, it will no longer create an output with 7 fixed decimal places, which all other implementations of this format do.

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/20191230/713f9f5b/attachment-0001.html>

More information about the rails-dev mailing list