- html5
- html5/VA
- html5/canvas
- html5/drag-and-drop
- html5/form
- html5/geolocation
- html5/offline-web-application
- html5/others-api
- html5/outline
- html5/overview
- html5/richtext-edit
- html5/video&audio
- html5/web-storage
- html5/web-workers
- html5/webSqlDatabase
- html5/websocket
- html5/문������
- html5practice/roundRect
- html5practice/���겨���기목록만들기
Contents
[-]1. Geolocation API? ¶
- ���로그램��� ���������는 디바��������� ������ ���보를 ���기 ������ API
- 모바��� ������리���������과 ���동������ ������
- 고급 ��벨��� API - GPS를 ���������는��� ������������ ���보를 ���������는���는 ������ ������나
디바������나 ��������������� ���류��� 관�������� 동���!
2.1. getCurrentPosition() ¶
- ������ ������를 �����만 ��는 메���드
namigator.geolocation.getCurrentPosition(function(position){ alert("�����:" + position.coords.latitude + "경�� :" + position.coords.longitude); });
- ������ ���보 객������ ������
coords ������ | ���명 |
latitude | ����� |
longitude | 경�� |
altitude | ���고 |
accuracy | �������� 경����� ������ |
altitudeAccuracy | ���고��� ������ |
heading | ������방��� |
speed | ������ ����� |
3. ���가 기능 ¶
������ | ���명 |
enableHighAccuracy | ��������가 높��� ������ ���보 ������ |
timeout | ������ ���보 ��������� ����������� ������ |
maximumAge | ������ 기�� ������ |