Skip to content

Commit 777ceed

Browse files
committed
syntax fix
1 parent d403ac9 commit 777ceed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

plusCodes.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ end
6767

6868
--my own pass at the algorithm. shorter, less thorough.
6969
function EncodeLatLon(latitude, longitude, codeLength)
70-
local code = ""
71-
local lat = 0 math.floor((latitude + 90) * 8000)
72-
local long = 0 math.floor((longitude + 180) * 8000)
70+
local code = ''
71+
local lat = 0
72+
local long = 0
7373
local digit11 = ''
7474
local nextLongChar = ''
7575
local nextLatChar = ''

0 commit comments

Comments
 (0)