Icon TLocationServices

Unit: WebComps

Inherits From TObject

The TLocationServices object encapsulates the HTML5 geolocation functionality, which allows the application to determine the physical location of the machine or device running the host web browser (with the user's permission). In addition to the latitude and longitude of the machine or device, additional information such as the altitude, heading, and speed may be available, depending upon the type of device being used to host the web browser.

Information The component library includes one global instance of this class called LocationServices in the WebComps unit that should be used instead of creating a new instance of the class.

Warning The HTML5 geolocation functionality is only available in secure contexts (https) in many modern browsers, do please keep this in mind when deciding whether to use such functionality in your application.


Image