Your SlideShare is downloading. ×
0
Jason
Support
Geolocation API The Geolocation API exposes the latitude andlongitude to JavaScript in a webpage by usingthe geolocation ...
Geolocation API - Method getCurrentPosition(successCallback,[errorCallback],[options]) The function specified bythesucce...
Geolocation API - GeopositionPositionPropertiesCoordsPropertiesExplaincoordslatitude The latitude of the location specifie...
Geolocation API - PositionErrorProperties Explaincode Error CodeUNKNOWN_ERROR Uncertainty ErrorPERMISSION_DENIED The user ...
Geolocation API - OptionProperties ExplainenableHighAccuracy bool (false) Obtain the most accurate position possible, orfa...
Geolocation API - Method watchPosition(successCallback,[errorCallback],[options]) Returns :WatchID [Integer] Begins lis...
Geolocation API - Method clearWatch ( WatchID ) Stops listening for updates to the currentgeographical location.
Reference http://msdn.microsoft.com/en-us/library/ie/hh772290(v=vs.85).aspx http://kuro.tw/blog/2011/12/07/html5-geoloca...
Upcoming SlideShare
Loading in...5
×

Geoloaction

145

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
145
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Geoloaction"

  1. 1. Jason
  2. 2. Support
  3. 3. Geolocation API The Geolocation API exposes the latitude andlongitude to JavaScript in a webpage by usingthe geolocation object, which is a child objectof the window.navigator.
  4. 4. Geolocation API - Method getCurrentPosition(successCallback,[errorCallback],[options]) The function specified bythesuccessCallback parameter takesone position parameter. The function specified bytheerrorCallback parameter takesone positionError parameter
  5. 5. Geolocation API - GeopositionPositionPropertiesCoordsPropertiesExplaincoordslatitude The latitude of the location specified inthe coordinates objectlongitude The longitude of the location specified inthe coordinates objectaltitude Specifies the altitude, in meters, ofthe coordinates object.accuracy Gets the accuracy of the latitudeand longitude properties , in meters.altitudeAccuracy Accuracy of the altitude property, in meters.heading Specifies a direction of travelspeed Current ground speed of the device runningInternet Explorer, specified in meters per second.timestamp Gets the time associated with the geographic information
  6. 6. Geolocation API - PositionErrorProperties Explaincode Error CodeUNKNOWN_ERROR Uncertainty ErrorPERMISSION_DENIED The user has denied permission for the website to accessgeographic information.POSITION_UNAVAILABLE The geographic location could not be determined.TIMEOUT The request did not complete within the time allowed.message Gets an error message for debugging purposes.
  7. 7. Geolocation API - OptionProperties ExplainenableHighAccuracy bool (false) Obtain the most accurate position possible, orfalse to optimize in favor of performance andpower consumption.timeout Integer (none) An Integer value that indicates the time, inmilliseconds, allowed for obtaining the position.maximumAge Integer (0) An Integer value indicating the maximum age,in milliseconds, of cached position information.
  8. 8. Geolocation API - Method watchPosition(successCallback,[errorCallback],[options]) Returns :WatchID [Integer] Begins listening for updates to the currentgeographical location of the device runningthe client.
  9. 9. Geolocation API - Method clearWatch ( WatchID ) Stops listening for updates to the currentgeographical location.
  10. 10. Reference http://msdn.microsoft.com/en-us/library/ie/hh772290(v=vs.85).aspx http://kuro.tw/blog/2011/12/07/html5-geolocation-api
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×