è·é¢ï¼km ï¼ï¼çµåº¦ï¼ç·¯åº¦ï¼ å°å³ã®ä½ç½®ãã¯ãªãã¯ã§ä½ç½®ã追å ã è¨å®ã³ã¼ã¹ã移åï¼ 0kmå°ç¹ ç°¡ææ¤ç´¢ï¼ä½æï¼çªå°å¯¾å¿ï¼ã»å°åã»é§ åã»ã¡ã¸ã£ã¼ãªè¨åã»å¤§å¦ã®å ´æï¼ ï¼ç¹ã®ç·¯åº¦çµåº¦ããè·é¢ãæ±ããæ¹æ³ // x : çµåº¦ï¼æ±è¥¿ï¼, y : 緯度ï¼ååï¼ // (x1,y1)-(x2,y2) function cal_length(x1,y1, x2,y2) { x1 = x1 * Math.PI / 180.0; y1 = y1 * Math.PI / 180.0; x2 = x2 * Math.PI / 180.0; y2 = y2 * Math.PI / 180.0; A = 6378137; // å°çã®èµ¤éåå¾(6378137m) x = A * (x2-x1) * Math.cos( y1 ); y = A * (y2-y1); L = Math.sqrt(x*x + y*y)
{{#tags}}- {{label}}
{{/tags}}