File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 26
26
27
27
Codes represent rectangular areas rather than points, and the longer the
28
28
code, the smaller the area. A 10 character code represents a 13.5x13.5
29
- meter area (at the equator. An 11 character code represents approximately
29
+ meter area (at the equator) . An 11 character code represents approximately
30
30
a 2.8x3.5 meter area.
31
31
32
32
Two encoding algorithms are used. The first 10 characters are pairs of
@@ -351,9 +351,6 @@ function decode(code) {
351
351
// Row and column numbers must be integers.
352
352
var row = Math . floor ( value / GRID_COLUMNS ) ;
353
353
var col = Math . floor ( value % GRID_COLUMNS ) ;
354
- // Lat and lng grid sizes shouldn't underflow due to maximum code length
355
- // enforcement, but a hypothetical underflow won't cause fatal errors
356
- // here.
357
354
latitude_resolution /= GRID_ROWS ;
358
355
longitude_resolution /= GRID_COLUMNS ;
359
356
latitude += row * latitude_resolution ;
You can’t perform that action at this time.
0 commit comments