geolocation property

Gets a reference to an IWebGeolocation interface, which reports the geographic location of the device running the application.

Geolocation API Specification, Section 5.1Internet Explorer 9



HRESULT value = object.get_geolocation(IWebGeolocation** p);

Property values

Type: Object

A reference to an IWebGeolocation interface.

Standards information


Windows Internet Explorer 9. The INavigatorGeolocation::geolocation property is only supported for webpages displayed in IE9 Standards mode. For more information, see Defining Document Compatibility.