[openstreetmap/openstreetmap-website] JSON output nodes, ways, relations, map (#2485)
mmd
notifications at github.com
Sun Dec 29 16:57:58 UTC 2019
Really disappointing. This framework is unable to produce floating numbers with 7 decimal digits without wrapping it in quotation marks. Some people on StackOverflow suggest to monkey patch BigDecimal - whatever they mean by that. Oh well.
This is what we need:
```
"bounds": {
"minlat": 0.9924642,
"minlon": 1.1463021,
"maxlat": 1.0044411,
"maxlon": 1.1633345
},
```
This is what jbuilder comes up with:
```
"bounds"=>{"minlat"=>"6.9000000", "minlon"=>"6.9000000", "maxlat"=>"7.1000000", "maxlon"=>"7.1000000"}
```
--
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#issuecomment-569523092
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20191229/84985c84/attachment.html>
More information about the rails-dev
mailing list