Javascript & JQuery & CSS > Google Maps API + GPS °Å¸® ±¸Çϱâ (MS_SQL Query ÀÌ¿ë)
µî·ÏÀÏ : 2017-07-14 17:15
Á¶È¸¼ö : 53,055
À§µµ-°æµµ¸¦ ÀÌ¿ëÇÏ¿© µÎ ÁöÁ¡°£ÀÇ °Å¸®¸¦ ±¸ÇÏ´Â Query ¹® ÀÔ´Ï´Ù.
°Å¸®°è»ê °ø½Ä
lat1, lat2 = À§µµ1, À§µµ2
lon1, lon2 = °æµµ1, °æµµ2
select sqrt(round(round(lat1-lat2,10)*111000,10) * round(round(lat1 - lat2,10)*111000,10)+
round(round(lon1 - lon2,10)*88800,10) * round(round(lon1 - lon2,10)*88800,10))/1000
select sqrt(round(round(35.1604187-35.4085814,10)*111000,10) * round(round(35.1604187 - 35.4085814,10)*111000,10)+
round(round(126.8046524 - 126.49306590000003,10)*88800,10) * round(round(126.8046524 - 126.49306590000003,10)*88800,10))/1000