Web Device Location
From Xojo Documentation
Use Device Location to access the HTML5 GeoLocation capabilities provided by the browser (if supported).
- After calling the RequestDeviceLocation method, this method is called with the information about the location. If the location could not be determined, then the Error event is called instead.
- Asks the browser to request the device's location. Calls the DeviceLocation event if the location can be determined, otherwise calls the Error event.
The RequestDeviceLocation method asks the browser for the location:
The WebDeviceLocation object's DeviceLocation event is called with the location. This code displays the latitude and longitude:
UserGuide:Web UI topic