Share
VIDEOS 1 TO 50
JavaScript Lesson 18 Geolocation API
JavaScript Lesson 18 Geolocation API
Published: 2016/03/06
Channel: DoingITeasyChannel
W3C Geolocation API
W3C Geolocation API
Published: 2014/12/11
Channel: Audiopedia
Hak5 - Spoofing the W3C Geolocation API
Hak5 - Spoofing the W3C Geolocation API
Published: 2011/08/03
Channel: Hak5
HTML5 geolocation API tutorial in Hindi Urdu | Trace User Latitude Longitude
HTML5 geolocation API tutorial in Hindi Urdu | Trace User Latitude Longitude
Published: 2017/05/24
Channel: vishAcademy
google maps geolocation api example - php
google maps geolocation api example - php
Published: 2017/03/26
Channel: Vijai Rajan
Die Geolocation-​API - HTML5 und CSS3
Die Geolocation-​API - HTML5 und CSS3
Published: 2011/10/14
Channel: Rheinwerk
Geolocation API - Success Handler: HTML5
Geolocation API - Success Handler: HTML5
Published: 2013/06/11
Channel: Satish B
Simple HTML5 GeoLocation API Example
Simple HTML5 GeoLocation API Example
Published: 2011/02/27
Channel: olimpsys
Scott Luptowski from Handy on HTML5 Geolocation API
Scott Luptowski from Handy on HTML5 Geolocation API
Published: 2014/12/10
Channel: Hakka Labs
HTML5 API Geolocation Tutorials Google Map
HTML5 API Geolocation Tutorials Google Map
Published: 2016/03/29
Channel: Fruit JS
22 Geolocation API HTML 5 in Urdu with Example
22 Geolocation API HTML 5 in Urdu with Example
Published: 2017/08/09
Channel: Abdul Aleem Baig
HTML5 Geolocation
HTML5 Geolocation
Published: 2013/12/11
Channel: WebdesignerDepot
How to add the Real-Time Visitor IP Geo Location API into your web page?
How to add the Real-Time Visitor IP Geo Location API into your web page?
Published: 2009/07/30
Channel: hexahow
How To Use A GEOLOCATION API GET REQUEST
How To Use A GEOLOCATION API GET REQUEST
Published: 2016/05/15
Channel: Crypto Chan
Wie kann ich mit der HTML5 Geolocation API die Distanz zu einer statischen Position berechnen?
Wie kann ich mit der HTML5 Geolocation API die Distanz zu einer statischen Position berechnen?
Published: 2012/10/11
Channel: Torben Leuschner
HTML5 Tutorial (Section 5-Geolocation in HTML5)
HTML5 Tutorial (Section 5-Geolocation in HTML5)
Published: 2014/08/10
Channel: Beginner Tutorials
Google Geolocation API   presentation
Google Geolocation API presentation
Published: 2016/01/05
Channel: Jason Catlin
Geolocation API - Mobile Web Development
Geolocation API - Mobile Web Development
Published: 2015/02/23
Channel: Udacity
Learn To Use HTML5 Geolocation API And Google Map By Asim Iqbal
Learn To Use HTML5 Geolocation API And Google Map By Asim Iqbal
Published: 2016/07/12
Channel: netroxtech
A Quick Guide to Using Geolocation API (jQuery Mobile App)
A Quick Guide to Using Geolocation API (jQuery Mobile App)
Published: 2016/12/03
Channel: Appery io
Get User Location Name | Google Map API | HTML5 geolocation API tutorial in Hindi Urdu Part 2/3
Get User Location Name | Google Map API | HTML5 geolocation API tutorial in Hindi Urdu Part 2/3
Published: 2017/05/24
Channel: vishAcademy
HTML5 Mobile Geolocation Tutorial
HTML5 Mobile Geolocation Tutorial
Published: 2013/07/01
Channel: LearnToProgram: Become a Web or Mobile Developer
Gears for Mobile and the new GeoLocation API at GDD 2008 in London
Gears for Mobile and the new GeoLocation API at GDD 2008 in London
Published: 2008/09/18
Channel: Google UK
New Gears Geolocation API powers mobile web sites
New Gears Geolocation API powers mobile web sites
Published: 2008/08/22
Channel: GoogleMobileBlog
16-1. HTML5 GeoLocation API
16-1. HTML5 GeoLocation API
Published: 2014/09/16
Channel: easyspub
Using Google Map Geolocation API with AngularJS.
Using Google Map Geolocation API with AngularJS.
Published: 2015/05/30
Channel: Subhroneel Ganguly
HTML5/JS GeoLocation, GPS, Cell Triangulation
HTML5/JS GeoLocation, GPS, Cell Triangulation
Published: 2015/10/02
Channel: Akshat N
Demo of GeoLocation API
Demo of GeoLocation API
Published: 2013/05/12
Channel: Paul Kinlan
HTML5 API: Geolocation
HTML5 API: Geolocation
Published: 2010/05/20
Channel: Thytos
Distance Calculation based on GEO Location API
Distance Calculation based on GEO Location API
Published: 2016/11/23
Channel: Automation Geek
HTML 5 - Chapter 11 - Geo location API (Google Map with a marker, zoom, drag options) Part 2
HTML 5 - Chapter 11 - Geo location API (Google Map with a marker, zoom, drag options) Part 2
Published: 2017/03/09
Channel: Ankpro Training
HTML5  Geolocation Part 1
HTML5 Geolocation Part 1
Published: 2015/05/17
Channel: Abex Yora
Intermediate PHP Tutorial 1 - Yahoo Geolocation API
Intermediate PHP Tutorial 1 - Yahoo Geolocation API
Published: 2012/12/20
Channel: Anthony Vipond
HTML 5 - Chapter 11 - Geo location API Part 1
HTML 5 - Chapter 11 - Geo location API Part 1
Published: 2017/03/04
Channel: Ankpro Training
HTML5 24 Geolocation API IN HINDI
HTML5 24 Geolocation API IN HINDI
Published: 2017/08/15
Channel: Ajaze Khan
Geolocation | Google Maps | Latitude | Longitude | HTML5 API
Geolocation | Google Maps | Latitude | Longitude | HTML5 API
Published: 2015/04/09
Channel: Savage Consultores
Error Cases | Debug Cases | HTML5 geolocation API tutorial in Hindi Urdu Part 3/3
Error Cases | Debug Cases | HTML5 geolocation API tutorial in Hindi Urdu Part 3/3
Published: 2017/05/24
Channel: vishAcademy
[IPloc] IP Geolocation API google MAPS - PHP // KoubackTr //
[IPloc] IP Geolocation API google MAPS - PHP // KoubackTr //
Published: 2013/09/19
Channel: KoubaTr
Get Location Using Geo Location API (JavaScript) - Tamil Tutorials
Get Location Using Geo Location API (JavaScript) - Tamil Tutorials
Published: 2017/07/07
Channel: Tamil Tutorials
(1/6) - Introduction to Geolocation Project - HTML5 Geolocation
(1/6) - Introduction to Geolocation Project - HTML5 Geolocation
Published: 2012/11/01
Channel: Code Cascade
Geolocation API -- Error Handle: HTML5
Geolocation API -- Error Handle: HTML5
Published: 2013/06/12
Channel: Satish B
Location-Aware Applications You can Develop with HTML5 Geolocation API
Location-Aware Applications You can Develop with HTML5 Geolocation API
Published: 2015/06/02
Channel: Crypters Infotech
PHP Tutorial-geolocation using google and yahoo api
PHP Tutorial-geolocation using google and yahoo api
Published: 2010/08/19
Channel: Joe Colon
How to add the JavaScript IP Geo Location API into your blog
How to add the JavaScript IP Geo Location API into your blog
Published: 2009/08/10
Channel: hexahow
Geolocation in HTML5
Geolocation in HTML5
Published: 2013/05/16
Channel: Internet Services and Social Networks Tutorials from HowTech
GeoLocation
GeoLocation
Published: 2011/08/19
Channel: jaffe
HTML5-Workshop: Geolocation API & LocalStorage
HTML5-Workshop: Geolocation API & LocalStorage
Published: 2011/01/06
Channel: Thytos
HTML5: Geolocation
HTML5: Geolocation
Published: 2016/10/22
Channel: Arkmont School
HTML5 Tutorial - 7 - HTML5 Geolocation API,Using HTML5 Geolocation
HTML5 Tutorial - 7 - HTML5 Geolocation API,Using HTML5 Geolocation
Published: 2016/04/05
Channel: Worldfreeapps
JavaScript Fundamental Course (Geolocation API) 6.2 - Bangla Tutorial
JavaScript Fundamental Course (Geolocation API) 6.2 - Bangla Tutorial
Published: 2016/02/27
Channel: kuthi devs
NEXT
GO TO RESULTS [51 .. 100]

WIKIPEDIA ARTICLE

From Wikipedia, the free encyclopedia
Jump to: navigation, search

The W3C Geolocation API is an effort by the World Wide Web Consortium (W3C) to standardize an interface to retrieve the geographical location information for a client-side device.[1] It defines a set of objects, ECMAScript standard compliant, that executing in the client application give the client's device location through the consulting of Location Information Servers, which are transparent for the application programming interface (API). The most common sources of location information are IP address, Wi-Fi and Bluetooth MAC address, radio-frequency identification (RFID), Wi-Fi connection location, or device Global Positioning System (GPS) and GSM/CDMA cell IDs. The location is returned with a given accuracy depending on the best location information source available.

Deployment in web browsers[edit]

Web pages can use the Geolocation API directly if the web browser implements it. Historically, some browsers could gain support via the Google Gears plugin, but this was discontinued in 2010 and the server-side API it depended on stopped responding in 2012.[2][3]

The Geolocation API is ideally suited to web applications for mobile devices such as personal digital assistants (PDA) and smartphones. On desktop computers, the W3C Geolocation API works in Firefox since version 3.5, Google Chrome,[4] Opera 10.6,[5] Internet Explorer 9.0,[6] and Safari 5. On mobile devices, it works on Android (firmware 2.0+), iOS, Windows Phone and Maemo. The W3C Geolocation API is also supported by Opera Mobile 10.1 — available for Android and Symbian devices (S60 generations 3 & 5) since November 24, 2010.[7]

Google Gears provided geolocation support for older and non-compliant browsers, including Internet Explorer 7.0+ as a Gears plugin, and Google Chrome which implemented Gears natively. It also supported geolocation on mobile devices as a plugin for the Android browser (pre version 2.0) and Opera Mobile for Windows Mobile. However, the Google Gears Geolocation API is incompatible with the W3C Geolocation API and is no longer supported.

Features[edit]

The result of W3C Geolocation API will usually give 4 location properties, including latitude and longitude (coordinates), altitude (height), and [accuracy of the position gathered], which all depend on the location sources. In some queries, altitude may yield or return no value.

Location Sources[edit]

The Geolocation API does not provide the location information. The location information is obtained by a device (such as a smartphone, PC or modem), which is then served by the API to be brought in browser. Usually geolocation will try to determine a device's position using one of these several methods.

GPS (Global Positioning System)
This happens for any device which has GPS capabilities. A smartphone with GPS capabilities and set to high accuracy mode will be likely to obtain the location data from this. GPS calculate location information from the satellite signal. It has the highest accuracy; in most Android smartphones, the accuracy can be up to 10 metres.
Mobile Network Location
Mobile phone tracking is used if a cellphone or wireless modem is used without a GPS chip built in.
WiFi Positioning System
If WiFi is used indoors, a Wi-Fi positioning system is the likeliest source. Some WiFi spots have location services capabilities.
IP Address Location
Location is detected based on nearest Public IP Address on a device (which can be a computer, the router it is connected to, or the ISP the router uses). The location depends on the IP information available, but in many cases where the IP is hidden behind Internet Service Provider NAT, the accuracy is only to the level of a city, region or even country.

Implementation[edit]

Though the implementation is not specified, W3C Geolocation API is built on extant technologies, and is heavily influenced by Google Gears Geolocation API. Example: Firefox's Geolocation implementation[8] uses Google's network location provider.[9]

Google Gears Geolocation works by sending a set of parameters that could give a hint as to where the user's physical location is to a network location provider server, which is by default the one provided by Google (code.l.google.com).[10] Some of the parameters are lists of sensed mobile cell towers and Wi-Fi networks, all with sensed signal strengths. These parameters are encapsulated into a JavaScript Object Notation (JSON) message and sent to the network location provider via HTTP POST. Based on these parameters, the network location provider can calculate the location. Common uses for this location information include enforcing access controls, localizing and customizing content, analyzing traffic, contextual advertising and preventing identity theft.[11]

Example code[edit]

Simple JavaScript code that checks if the browser has the Geolocation API implemented and then uses it to get the current position of the device. this code creates a function which can be called on html using <body onload="geoFindMe()">:

function geoFindMe() {
    if(navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(success, error, geoOptions);
    } else {
        console.log("Geolocation services are not supported by your web browser.");
    }
}

function success(position) {
    var latitude = position.coords.latitude;
    var longitude = position.coords.longitude;
    var altitude = position.coords.altitude;
    var accuracy = position.coords.accuracy;
    console.log("lat: " + latitude + " long: " + longitude);
}

function error(error) {
    console.log("Unable to retrieve your location due to " + error.code + ": " + error.message);
}

var geoOptions = {
    enableHighAccuracy: true,
    maximumAge: 30000,
    timeout: 27000
};

See also[edit]

References[edit]

  1. ^ Popescu, Andrei (editor, Google Inc.). "Geolocation API Specification: W3C Recommendation 24 October 2013". W3C. Retrieved 4 February 2016. 
  2. ^ "Geolocation API: Gears API: Google Code". 9 July 2009. 
  3. ^ GeolocationAPI - gears - Provides the geolocation of a device running a Gears-enabled web browser. - Improving Your Web Browser - Google Project Hosting. Code.google.com. Retrieved on 2014-06-01.
  4. ^ "A new Chrome stable release: Welcome, Mac and Linux!". 25 May 2010. 
  5. ^ Kleinhout, Huib (1 July 2010). "Opera 10.60 goes final". My Opera. Opera Software. Retrieved 2 July 2010. 
  6. ^ "W3C Geolocation API in IE9". 
  7. ^ Opera.com (2010-11-25). "Opera Mobile 10.1 for Nokia smartphones goes final". 
  8. ^ "Location-Aware Browsing". Mozilla Firefox. Mozilla. 
  9. ^ "Geolocation API Network Protocol: Gears API". Google Code. Google. Retrieved 8 August 2011. 
  10. ^ "WebScanNotes.com: W3C Geolocation API". WebScanNotes.com. 
  11. ^ King, Kevin F. (8 June 2010). "Personal Jurisdiction, Internet Commerce, and Privacy: The Pervasive Legal Consequences of Modern Geolocation Technologies". SSRN 1622411Freely accessible. 
  1. How to Implement a W3C Geolocation API in Javascript
  2. Where Am I - an W3C Geolocation displayed on Google Maps

External links[edit]

Disclaimer

None of the audio/visual content is hosted on this site. All media is embedded from other sites such as GoogleVideo, Wikipedia, YouTube etc. Therefore, this site has no control over the copyright issues of the streaming media.

All issues concerning copyright violations should be aimed at the sites hosting the material. This site does not host any of the streaming media and the owner has not uploaded any of the material to the video hosting servers. Anyone can find the same content on Google Video or YouTube by themselves.

The owner of this site cannot know which documentaries are in public domain, which has been uploaded to e.g. YouTube by the owner and which has been uploaded without permission. The copyright owner must contact the source if he wants his material off the Internet completely.

Powered by YouTube
Wikipedia content is licensed under the GFDL and (CC) license