vbb-shapes
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -14,4 +14,4 @@ 'use strict' | ||
output.push([ | ||
Math.round((lat - lastLat) * 1000), | ||
Math.round((lon - lastLon) * 1000) | ||
Math.round((lat - lastLat) * 100000), | ||
Math.round((lon - lastLon) * 100000) | ||
]) | ||
@@ -18,0 +18,0 @@ lastLat = lat |
{ | ||
"name": "vbb-shapes", | ||
"description": "Shapes of VBB lines.", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "files": ["index.js", "compress.js", "uncompress.js", "data.ndjson"], |
@@ -10,4 +10,4 @@ 'use strict' | ||
for (let i = 0; i < input.length; i++) { | ||
const dLat = input[i][0] / 1000 | ||
const dLon = input[i][1] / 1000 | ||
const dLat = input[i][0] / 100000 | ||
const dLon = input[i][1] / 100000 | ||
lastLat = Math.round((dLat + lastLat) * 100000) / 100000 | ||
@@ -14,0 +14,0 @@ lastLon = Math.round((dLon + lastLon) * 100000) / 100000 |
Sorry, the diff of this file is not supported yet
239885171