We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a0d99f + 9fee617 commit 28745a2Copy full SHA for 28745a2
1 file changed
js/src/openlocationcode.js
@@ -348,14 +348,6 @@
348
lngVal = lngVal % (2 * LONGITUDE_MAX_ * FINAL_LNG_PRECISION_);
349
}
350
351
- // // Multiply values by their precision and convert to positive.
352
- // // Force to integers so the division operations will have integer results.
353
- // // Note: JavaScript requires rounding before truncating to ensure precision!
354
- // var latVal =
355
- // Math.floor(Math.round((latitude + LATITUDE_MAX_) * FINAL_LAT_PRECISION_ * 1e6) / 1e6);
356
- // var lngVal =
357
- // Math.floor(Math.round((longitude + LONGITUDE_MAX_) * FINAL_LNG_PRECISION_ * 1e6) / 1e6);
358
-
359
var code = '';
360
// Compute the grid part of the code if necessary.
361
if (codeLength > PAIR_CODE_LENGTH_) {
0 commit comments