Unify lat/lon formatting for json output

This commit is contained in:
mmd-osm 2020-01-02 14:37:27 +01:00
parent 45a1d298a9
commit b54333fa6d
5 changed files with 18 additions and 14 deletions

View file

@ -12,6 +12,10 @@ module GeoRecord
def to_s
format("%.7f", self)
end
def as_json(_)
format("%.7f", self).to_f
end
end
# This scaling factor is used to convert between the float lat/lon that is