Module:Ordnance Survey coordinates/sandbox: Difference between revisions

Content deleted Content added
use tables as return values, not tuples
rename
Line 149:
until abs(phinewwgs84-phiradwgs84)<=0.000000000001 or nextcounter>=100
lat=phinewwgs84*dr
return {countryregion="GB",lat=lat,long=long}
end
 
Line 159:
local ne = northeast(lett,num,0)
if ne.err then
return {countryregion="GB",err=ne.err}
end
-- use British definition of e and n
Line 250:
until abs(phinewwgs84-phiradwgs84)<=0.000000000001 or nextcounter>=10000
lat=phinewwgs84*dr
return {countryregion="IE",lat=lat,long=long}
end
 
Line 259:
local ne = northeast(lett,num,0)
if ne.err then
return {countryregion="IE", err=ne.err}
end
-- use Irish definition of northing and easting
Line 379:
url = url..'_'..args[i]
end
if mw.ustring.find(input,"region") == nil and LL.countryregion then
url = url..'_region:'..LL.countryregion
end
if not empty(namearg) then