Merge pull request #2485 from mmd-osm/patch/json2

JSON output nodes, ways, relations, map
This commit is contained in:
Andy Allan 2020-02-26 15:55:48 +01:00 committed by GitHub
commit 73c95847a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
43 changed files with 566 additions and 13 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