Module:Coordinates: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
coordinateSpec["dms-lat"] = convert_dec2dms( lat, "N", "S", mode) -- {{coord/dec2dms|{{{1}}}|N|S|{{coord/prec dec|{{{1}}}|{{{2}}}}}}} |
coordinateSpec["dms-lat"] = convert_dec2dms( lat, "N", "S", mode) -- {{coord/dec2dms|{{{1}}}|N|S|{{coord/prec dec|{{{1}}}|{{{2}}}}}}} |
||
coordinateSpec["dms-long"] = convert_dec2dms( long, "E", "W", mode) -- {{coord/dec2dms|{{{2}}}|E|W|{{coord/prec dec|{{{1}}}|{{{2}}}}}}} |
coordinateSpec["dms-long"] = convert_dec2dms( long, "E", "W", mode) -- {{coord/dec2dms|{{{2}}}|E|W|{{coord/prec dec|{{{1}}}|{{{2}}}}}}} |
||
coordinateSpec["dec-lat"] = 'hih' |
|||
if format ~= "" then |
if format ~= "" then |
||
Line 80: | Line 79: | ||
local errors = {} |
local errors = {} |
||
if lat_m == nil and lat_s == nil and long_m == nil and long_s == nil then |
|||
⚫ | |||
if lat_f:upper() == 'S' then |
|||
⚫ | |||
lat_d = -lat_d; |
|||
⚫ | |||
end |
|||
⚫ | |||
if long_f:upper() == 'E' then |
|||
long_d = -long_d; |
|||
end |
|||
coordinateSpec, errors = parseDec( lat_d, long_d, format ); |
|||
else |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
end |
|||
if format ~= "" then |
if format ~= "" then |