//거리 계사하는 함수
private double distance( double lat1, double lon1, double lat2, double lon2, String unit)
{
double theta = lon1 - lon2;
double dist = Math.sin(deg2rad(lat1)) * Math.sin(deg2rad(lat2)) + Math.cos(deg2rad(lat1)) * Math.cos(deg2rad(lat2)) * Math.cos(deg2rad(theta));
dist = Math.acos(dist);
dist = rad2deg(dist);
dist = dist * 60 * 1.1515 ;
if (unit == "K" ) {
dist = dist * 1.609344 ;
} else if (unit == "N" ) {
dist = dist * 0.8684 ;
}
return (dist);
}
//인자값 : (위도 , 경도 , 목표 위도 , 목표 경도 , km);
게시판 목록
팁게시판
디자인과 관련된 유용한 정보를 공유하세요.
질문은 상단의 QA에서 해주시기 바랍니다.
질문은 상단의 QA에서 해주시기 바랍니다.
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 4902 | 13년 전 | 3548 | ||
| 4901 |
후라보노보노
|
13년 전 | 2163 | |
| 4900 |
|
13년 전 | 4122 | |
| 4899 |
|
13년 전 | 3375 | |
| 4898 |
|
13년 전 | 4894 | |
| 4897 | 13년 전 | 2694 | ||
| 4896 | 13년 전 | 2161 | ||
| 4895 |
|
13년 전 | 2489 | |
| 4894 |
|
13년 전 | 2830 | |
| 4893 | 13년 전 | 1465 | ||
| 4892 | 13년 전 | 1890 | ||
| 4891 |
|
13년 전 | 1915 | |
| 4890 | 13년 전 | 6102 | ||
| 4889 |
|
13년 전 | 1558 | |
| 4888 |
프로프리랜서
|
13년 전 | 1389 | |
| 4887 | 13년 전 | 1773 | ||
| 4886 |
|
13년 전 | 2236 | |
| 4885 | 13년 전 | 1571 | ||
| 4884 | 13년 전 | 1906 | ||
| 4883 | 13년 전 | 3299 | ||
| 4882 | 13년 전 | 3578 | ||
| 4881 | 13년 전 | 1946 | ||
| 4880 | 13년 전 | 698 | ||
| 4879 | 13년 전 | 5862 | ||
| 4878 |
Giggle
|
13년 전 | 1701 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기