[openstreetmap/openstreetmap-website] Scientific notation in coordinates (#1509)

Andy Allan notifications at github.com
Thu May 11 10:27:10 UTC 2017


Maybe we can take advantage of the fact that all of the lat/lons are converted from integers before use. So we could modify the [lib/geo_record.rb](https://github.com/openstreetmap/openstreetmap-website/blob/ff527bbf629137dbd57f1640212577a7bf1445a8/lib/geo_record.rb#L32-L40)

something like:

```
def Coordinate < Float
  def to_s
    format("%.7f", self)
  end
end
```
... and change lib/georecord to return `Coordinate`s instead of floats?

-- 
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/issues/1509#issuecomment-300749199
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20170511/af228584/attachment-0001.html>


More information about the rails-dev mailing list