יחידה:משתמש:mikey641
מראה
ניתן ליצור תיעוד על היחידה הזאת בדף יחידה:משתמש:mikey641/תיעוד
local p = {}
function p.map(frame)
local latitude = frame.args[1]
local longitude = frame.args[2]
if (frame.args[1] >= 31.1737) and (frame.args[1] <= 31.3463) and (frame.args[2] >= 34.7219) and (frame.args[2] <= 34.8675) then
return 'באר שבע'
else
if (frame.args[1] >= 32.69537) and (frame.args[1] <= 33.11507971631499) and (frame.args[2] >= 34.73070122316121) and (frame.args[2] <= 35.51055) then
return 'הגליל המערבי'
else
if (frame.args[1] >= 32.6764461458) and (frame.args[1] <= 33.109258756507636) and (frame.args[2] >= 35.10757118722667) and (frame.args[2] <= 35.8988169853) then
return 'הגליל העליון'
else
if (frame.args[1] >= 32.8083) and (frame.args[1] <= 32.8237) and (frame.args[2] >= 34.9904) and (frame.args[2] <= 35.0093) then
return 'העיר התחתית'
else
if (frame.args[1] >= 32.7521) and (frame.args[1] <= 32.849) and (frame.args[2] >= 34.9441) and (frame.args[2] <= 35.0855) then
return 'חיפה'
else
if (frame.args[1] >= 31.77185) and (frame.args[1] <= 31.78374) and (frame.args[2] >= 35.22357) and (frame.args[2] <= 35.24008) then
return 'ירושלים העתיקה'
else
if (frame.args[1] >= 31.7082) and (frame.args[1] <= 31.8830) and (frame.args[2] >= 35.1252) and (frame.args[2] <= 35.2642) then
return 'ירושלים'
else
if (frame.args[1] >= 32.09503) and (frame.args[1] <= 32.10469481) and (frame.args[2] >= 34.77031217) and (frame.args[2] <= 34.78431) then
return 'שפך הירקון'
else
if (frame.args[1] >= 32.056227) and (frame.args[1] <= 32.1027879) and (frame.args[2] >= 34.75948) and (frame.args[2] <= 34.8007048) then
return 'תל אביב'
else
if (frame.args[1] >= 32.05162) and (frame.args[1] <= 32.05695) and (frame.args[2] >= 34.7488269) and (frame.args[2] <= 34.75689) then
return 'יפו'
else
if (frame.args[1] >= 32.42435) and (frame.args[1] <= 32.847120765608814) and (frame.args[2] >= 34.871485608557) and (frame.args[2] <= 35.44883) then
return 'הכרמל'
else
if (frame.args[1] >= 32.38851) and (frame.args[1] <= 32.82627206408094) and (frame.args[2] >= 35.154055545871) and (frame.args[2] <= 35.76533) then
return 'עמק בית שאן'
else
if (frame.args[1] >= 31.83538) and (frame.args[1] <= 32.263563983577995) and (frame.args[2] >= 34.660601702943) and (frame.args[2] <= 35.2408) then
return 'גוש דן'
else
if (frame.args[1] >= 29.47925) and (frame.args[1] <= 30.493059) and (frame.args[2] >= 34.266044169639) and (frame.args[2] <= 35.5857) then
return 'דרום הנגב'
else
if (frame.args[1] >= 31.84131) and (frame.args[1] <= 32.272692945886845) and (frame.args[2] >= 35.000679652698) and (frame.args[2] <= 35.57848) then
return 'דרום השומרון'
else
if (frame.args[1] >= 31.34262) and (frame.args[1] <= 31.766033023657148) and (frame.args[2] >= 34.872295414888) and (frame.args[2] <= 35.44326) then
return 'הר חברון'
else
if (frame.args[1] >= 31.34262) and (frame.args[1] <= 31.766033023657148) and (frame.args[2] >= 34.762295415262) and (frame.args[2] <= 35.33326) then
return 'הר חברון מערב'
else
if (frame.args[1] >= 31.55508) and (frame.args[1] <= 31.979567238082957) and (frame.args[2] >= 34.995457522101) and (frame.args[2] <= 35.56645) then
return 'הרי ירושלים'
else
if (frame.args[1] >= 31.55508) and (frame.args[1] <= 31.97893807415626) and (frame.args[2] >= 34.543188216162) and (frame.args[2] <= 35.11481) then
return 'השפלה'
else
if (frame.args[1] >= 31.20541) and (frame.args[1] <= 31.634495892345498) and (frame.args[2] >= 34.212317429402) and (frame.args[2] <= 34.78058) then
return 'מערב הנגב'
else
if (frame.args[1] >= 32.13286) and (frame.args[1] <= 32.54430105090853) and (frame.args[2] >= 34.772010092369) and (frame.args[2] <= 35.33726) then
return 'נתניה'
else
if (frame.args[1] >= 30.40782) and (frame.args[1] <= 31.421632) and (frame.args[2] >= 34.266044169639) and (frame.args[2] <= 35.5857) then
return 'צפון הנגב'
else
if (frame.args[1] >= 32.94711) and (frame.args[1] <= 33.36300764221275) and (frame.args[2] >= 35.296841734687) and (frame.args[2] <= 35.92369) then
return 'אצבע הגליל'
else
if (frame.args[1] >= 32.08489) and (frame.args[1] <= 32.507814037603865) and (frame.args[2] >= 35.017605608717) and (frame.args[2] <= 35.58698) then
return 'צפון השומרון'
else
return 'ישראל'
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
end
return p