{"id":1446,"date":"2013-12-13T08:42:04","date_gmt":"2013-12-13T08:42:04","guid":{"rendered":"http:\/\/brain.payzip.co.kr\/?p=1446"},"modified":"2013-12-13T08:42:04","modified_gmt":"2013-12-13T08:42:04","slug":"%ec%9c%84%eb%8f%84%ea%b2%bd%eb%8f%84-latlatitute-lnglongitute","status":"publish","type":"post","link":"https:\/\/blog.goorigo.com\/?p=1446","title":{"rendered":"\uc704\ub3c4,\uacbd\ub3c4 : lat(latitute), lng(longitute)"},"content":{"rendered":"<p><img src=\"http:\/\/wiki.mathnt.net\/images\/8\/8d\/3065000-FAQ_Lat_long.gif\" alt=\"\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2 id=\"LatLng\">google.maps.LatLng class<\/h2>\n<p>A\u00a0<code>LatLng<\/code>\u00a0is a point in geographical coordinates: latitude and longitude.<\/p>\n<ul>\n<li>Latitude ranges between -90 and 90 degrees, inclusive. Values above or below this range will be clamped to the nearest value within this range. For example, specifying a latitude of 100 will set the value to 90.<\/li>\n<li>Longitude ranges between -180 and 180 degrees, inclusive. Values above or below this range will be wrapped such that they fall within the range [-180, 180). For example, 480, 840 and 1200 will all be wrapped to 120 degrees.<\/li>\n<\/ul>\n<p>Although the default map projection associates longitude with the x-coordinate of the map, and latitude with the y-coordinate, the latitude coordinate is always written\u00a0<em>first<\/em>, followed by the longitude.<br \/>\nNotice that you cannot modify the coordinates of a\u00a0<code>LatLng<\/code>. If you want to compute another point, you have to create a new one.<\/p>\n<p>&nbsp;<\/p>\n<h3>Constructor<\/h3>\n<table summary=\"class LatLng - Constructor\" width=\"100%\">\n<thead>\n<tr>\n<th>Constructor<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>LatLng(lat:number, lng:number, noWrap?:boolean)<\/code><\/td>\n<td>Creates a\u00a0<code>LatLng<\/code>\u00a0object representing a geographic point. Latitude is specified in degrees within the range [-90, 90]. Longitude is specified in degrees within the range [-180, 180]. Set\u00a0<code>noWrap<\/code>\u00a0to\u00a0<code>true<\/code>\u00a0to enable values outside of this range. Note the ordering of latitude and longitude.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>Methods<\/h3>\n<table summary=\"class LatLng - Methods\" width=\"100%\">\n<thead>\n<tr>\n<th>Methods<\/th>\n<th>Return Value<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><code>equals(other:<a href=\"https:\/\/developers.google.com\/maps\/documentation\/javascript\/reference?hl=ko#LatLng\">LatLng<\/a>)<\/code><\/td>\n<td><code>boolean<\/code><\/td>\n<td>Comparison function.<\/td>\n<\/tr>\n<tr>\n<td><code>lat()<\/code><\/td>\n<td><code>number<\/code><\/td>\n<td>Returns the latitude in degrees.<\/td>\n<\/tr>\n<tr>\n<td><code>lng()<\/code><\/td>\n<td><code>number<\/code><\/td>\n<td>Returns the longitude in degrees.<\/td>\n<\/tr>\n<tr>\n<td><code>toString()<\/code><\/td>\n<td><code>string<\/code><\/td>\n<td>Converts to string representation.<\/td>\n<\/tr>\n<tr>\n<td><code>toUrlValue(precision?:number)<\/code><\/td>\n<td><code>string<\/code><\/td>\n<td>Returns a string of the form &#8220;lat,lng&#8221; for this LatLng. We round the lat\/lng values to 6 decimal places by default.<\/p>\n<p>&nbsp;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>GPS\ub098 \ub124\uc774\ubca0\uc774\uc158 \ub610\ub294 \uc9c0\ub3c4 \uc5b4\ud50c\ub9ac\ucf00\uc774\uc158 \ub4f1\ub4f1 \uc9c0\ub3c4\uc0c1\uc758 \ud2b9\uc815 \uc88c\ud45c\ub97c \uac00\ub9ac\ud0a4\ub294\ub370 \uc704\ub3c4\uc640 \uacbd\ub3c4\ub97c \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p>\uc704\ub3c4\ub294 \uc801\ub3c4\ub97c \uae30\uc900\uc73c\ub85c \ubd81\uadf9\uacfc \ub0a8\uadf9 \ubc29\ud5a5\uc73c\ub85c 90\ub3c4\uc529 \ucd1d 180\ub3c4\ub85c \ub098\ub208 \uac00\ub85c\ubc29\ud5a5 \uc88c\ud45c\uc774\uace0<br \/>\n\uacbd\ub3c4\ub294 \uadf8\ub9ac\ub2c8\uce58 \ucc9c\ubb38\ub300\ub97c \uae30\uc900\uc73c\ub85c \uc88c\uc6b0\ub85c \ucd1d 360\ub3c4\ub85c \ub098\ub208 \uc138\ub85c\ubc29\ud5a5 \uc88c\ud45c\uc774\ub2e4. ( \uacbd\ub3c4 15\ub3c4\ub294 1\uc2dc\uac04 )<\/p>\n<p>\uc704\ub3c4( Latitude ), \uacbd\ub3c4( Longitude ) \ub294 \uc57d\uc5b4\ub85c \ud504\ub85c\uadf8\ub7a8 \ucf54\ub529\uc0c1\uc5d0\uc11c Lat, Lng \uc73c\ub85c \uc904\uc5ec\uc11c \uc4f0\uae30\ub3c4 \ud55c\ub2e4.<\/p>\n<p>\uc704\ub3c4\uc640 \uacbd\ub3c4\ub97c \ub098\ud0c0\ub0b4\ub294 \ub2e8\uc704\ub85c\ub294 \ub3c4,\ubd84,\ucd08 \ub97c \uc0ac\uc6a9\ud558\ub294\ub370 \uc2dc\uac04 \ucc98\ub7fc 60\uc9c4\ubc95\uc744 \uc0ac\uc6a9\ud55c\ub2e4.<br \/>\nex) 1\ub3c4\ub294 60\ubd84 1\ubd84\uc740 60\ucd08<\/p>\n<p>\uc0c1\ubd09\uc5ed 3\ubc88 \ucd9c\uad6c\uc758 \uc704\ub3c4, \uacbd\ub3c4 \uac12\uc740<br \/>\n\uc704\ub3c4 : 37.59523<br \/>\n\uacbd\ub3c4 : 127.08600<\/p>\n<p>\uc0c1\ubd09\uc5ed 3\ubc88 \ucd9c\uad6c\uc758 \uc704\ub3c4 \uacbd\ub3c4\uac12\uc744 \ub3c4\ubd84\ucd08 \ub2e8\uc704\ub85c \ubc14\uafd4 \uc801\uc73c\uba74<br \/>\n\uc704\ub3c4 : \ubd81\uc704 37\ub3c4 35\ubd84 42\ucd08<br \/>\n\uacbd\ub3c4 : \ub3d9\uacbd 127\ub3c4 5\ubd84 9\ucd08<\/p>\n<p>\uc704\ub3c4\uc640 \uacbd\ub3c4 \uac12\uc5d0\uc11c \ub3c4\ubd84\ucd08 \ub2e8\uc704\uc758 \uac12\uc744 \uad6c\ud558\ub294 \ubc29\uc2dd\uc740 \uc704\ub3c4\uc640 \uacbd\ub3c4\uc758 \uac12\uc5d0\uc11c<br \/>\n\uc55e\uc5d0 \uc815\uc218 \ubd80\ubd84\uc740 \ub3c4\uc758 \uac12\uc73c\ub85c &#8211; ex) 37.59523<br \/>\n\ub0a8\uc740 \uc18c\uc218\uc758 \uac12\uc5d0 60\uc744 \uacf1\ud574 \ub098\uc628 \uc218\uc758 \uc815\uc218\uac12\uc774 \ubd84 &#8211; ex) 0.59523 * 60 = 35.7138<br \/>\n\ub0a8\uc740 \uc18c\uc218\uc758 \uac12\uc5d0 \ub2e4\uc2dc 60\uc744 \uacf1\ud574 \ub098\uc628 \uc218\uc758 \uc815\uc218\uac12\uc774 \ucd08 &#8211; ex) 0.7138 * 60 = 42.828<\/p>\n<p>\uc9c0\uad6c\uc758 \ubc18\uc9c0\ub984\uc740 \ub300\ub7b5 6300km ~ 6400km (\uc9c0\uad6c\ub294 \uc0b4\uc9dd \ud0c0\uc6d0\ud615 )<br \/>\n\uc9c0\uad6c \ub458\ub808\ub294 \uc57d 40000km<br \/>\n\uc9c0\uad6c \ub458\ub808 40000\uc744 360\ub3c4\ub85c \ub098\ub204\uba74 1\ub3c4\uc5d0 \ud574\ub2f9\ud558\ub294 \uae38\uc774 \uac12\uc744 \uad6c\ud560 \uc218 \uc788\ub2e4.<br \/>\n\uc704\ub3c4 1\ub3c4\uc5d0 \ud574\ub2f9\ud558\ub294 \uae38\uc774 \uac12\uc740, 40000 \/ 360 = \uc57d 111km (111.11111111&#8230; \uc774\uc9c0\ub9cc \uc5b4\ucc28\ud53c \ub300\ub7b5\uc801\uc774\ubbc0\ub85c )<br \/>\n\uacbd\ub3c4\ub3c4 \uc704\ub3c4\uc640 \uac19\uc774 1\ub3c4\uc5d0 \ud574\ub2f9\ud558\ub294 \uac12\uc774 111km\uc774\uc9c0\ub9cc \ubd81\uadf9\uacfc \ub0a8\uadf9\uc73c\ub85c \uac00\uae4c\uc6cc\uc9c8\uc218\ub85d \uacbd\ub3c4\uc0ac\uc774\uc758 \uac04\uaca9\uc774 \uc881\uc544\uc9c0\uace0 \ubd81\uadf9\uc810\uacfc \ub0a8\uadf9\uc810\uc5d0\uc11c\ub294 \uacbd\ub3c4 \uc0ac\uc774\uc758 \uac70\ub9ac\uac00 0\uc774 \ub418\ubbc0\ub85c (\uacbd\ub3c4\ub294 \uc801\ub3c4\uc5d0\uc11c \uac04\uaca9\uc774 \uac00\uc7a5 \uae38\ub2e4, \ubd81\uadf9\uacfc \ub0a8\uadf9\uc5d0\uc11c\ub294 \uacbd\ub3c4\uc120\uc774 \ud55c\uc810\uc73c\ub85c \ubaa8\uc778\ub2e4 )<br \/>\n\uacbd\ub3c4 1\ub3c4\uc5d0 \ud574\ub2f9\ud558\ub294 \uae38\uc774\uac12\uc740 111 * cos( \ud574\ub2f9 \uc9c0\uc5ed\uc758 \uc704\ub3c4\uac12 ) \ubc29\uc2dd\uc73c\ub85c \uad6c\ud574\uc57c \ud55c\ub2e4.<br \/>\n\uc6b0\ub9ac\ub098\ub77c\uc5d0\uc11c \ud754\ud788\uc4f0\ub294 \uc704\ub3c437\ub3c4\uae30\uc900 \uacbd\ub3c4 \uac70\ub9ac\ub294 1\ub3c4=88.8km ,1\ubd84=1.48km , 1\ucd08\u225225m \uc785\ub2c8\ub2e4<\/p>\n<p>\uc9c0\ub3c4\uc0c1\uc758 \ub450 \uc704\ub3c4(\ubd81\uc704),\uacbd\ub3c4(\ub3d9\uacbd)\uc5d0 \ud574\ub2f9\ud558\ub294 \ub450 \uc810\uc758 \uac70\ub9ac\uac12\uc744 \uad6c\ud558\ub294 \ubc29\ubc95\uc740<br \/>\n\ub3c4,\ubd84,\ucd08 \uac12\uc73c\ub85c \uad6c\ud55c \ub450 \uac12\uc758 \ucc28\ub97c \uad6c\ud558\uace0 \ub098\uc628 \uacb0\uacfc \uac12\uc5d0<br \/>\n\uc704\ub3c4\uc758 \uac12 y\uc88c\ud45c\uc758 \ub3c4 * 111 + y\uc88c\ud45c\uc758 \ubd84 * 1.85 + y\uc88c\ud45c\uc758 \ucd08 * 0.031 \ub97c \uacc4\uc0b0\ud55c \uac12 A\ub97c \uad6c\ud558\uace0<br \/>\n\uacbd\ub3c4\uc758 \uac12 x\uc88c\ud45c\uc758 \ub3c4 * 88.8 + x\uc88c\ud45c\uc758 \ubd84 * 1.48 + x\uc88c\ud45c\uc758 \ucd08 * 0.025 \ub97c \uacc4\uc0b0\ud55c \uac12 B\uc640<br \/>\nA\uc81c\uacf1 + B\uc81c\uacf1\uc758 \uac12\uc5d0 \ub8e8\ud2b8 \uc5f0\uc0b0\uc744 \ud558\uba74 km\ub2e8\uc704\uc758 \uac70\ub9ac\uac12\uc744 \uad6c\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>\uc704\uc758 \ubc29\uc2dd\uc740 \uc704\ub3c4 \ucc28\uc774\uac00 \ud06c\uc9c0 \uc54a\ub294 \uac70\ub9ac\ub0b4\uc5d0\uc11c\ub294 \uc624\ucc28\uac00 \uc801\uc9c0\ub9cc \ubd81\uadf9 \uadfc\ucc98\uc758 \ud55c \uc9c0\uc810\uacfc \uc801\ub3c4 \uadfc\ucc98\uc758 \ub2e4\ub978 \ud55c \uc9c0\uc810\uacfc\uc758 \uac70\ub9ac \uac12 \uad6c\ud558\ub294 \uacf5\uc2dd\uc73c\ub85c\ub294 \uc62c\ubc14\ub974\uc9c0 \uc54a\ub2e4.<\/p>\n<p>\uad6c \uc704\uc5d0 \ub450 \uc810\uc744 \ubc31\ud130\ub85c \uc5f0\uc0b0\ud558\ub294 \ubc29\uc2dd\uc774 \uc788\ub2e4\uace0 \ud55c\ub2e4.<\/p>\n<p>\ucd9c\ucc98 :\u00a0<a href=\"http:\/\/clack.tistory.com\/224\">http:\/\/clack.tistory.com\/224<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; google.maps.LatLng class A\u00a0LatLng\u00a0is a point in geographical coordinates: latitude and longitude. Latitude ranges between -90 and 90 degrees, inclusive. Values above or below this range will be clamped to&hellip; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/1446"}],"collection":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1446"}],"version-history":[{"count":0,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=\/wp\/v2\/posts\/1446\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.goorigo.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}