rubyã³ã¼ãã®ãµã³ãã« def dms2tyo(dms) a = dms.split(".") return self.round(((a[0].to_f*3600 + a[1].to_f*60 + "#{a[2]}.#{a[3]}".to_f)/3600),10) end dms2tyo("139.42.20.28") ãå¼ã³åºã㨠139.7056333333ãæ»ãã¾ãã dms2tyo("35.41.20.7")ãå¼ã³åºã㨠35.6890833333 ãæ»ãã¾ãã å®éã®è¨ç®ã¯ "139.42.20.28"ãã®å ´å (139*3600+42*60 +20.28) / 3600 = 139.705633333333ããããå°æ°ç¹ä»¥ä¸10æ¡ã«ãªãããã«åæ¨äºå ¥ãã¦ãã¾ãã 緯度ãçµåº¦ã¨ããããªãè¨ç®å¼ã§OKã§ãã
{{#tags}}- {{label}}
{{/tags}}