Unify lat/lon formatting for json output
This commit is contained in:
parent
45a1d298a9
commit
b54333fa6d
5 changed files with 18 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue