Geolocation
KnowledgeKube includes the option to access geolocation data from a web browser or mobile device. A single question group must be configured to receive geolocation data, which is gathered when that group is first loaded. You can then use geolocation functions to extract the data for use in your application.
The accuracy of geolocation data will vary depending on the web browser or mobile device you are using. The operating system of the mobile device and other conditional factors, such as battery power and weather conditions, will also affect accuracy. Mobile devices with GPS features enabled will return more accurate results than those without.
The following browsers support geolocation data gathering with KnowledgeKube:
- Microsoft Edge/Internet Explorer - version 9.0 and later.
- Google Chrome - version 50 and later (HTTPS context).
- Mozilla Firefox - version 3.5 and later.
- Safari - version 5.0 and later.
For KnowledgeKube to be able to receive geolocation data, individual users must allow the web browser or mobile app to access their location.
The following geolocation properties can be accessed by KnowledgeKube. Some of these properties are only accessible by mobile devices.
Property | Format | Example | Web | Mobile |
---|---|---|---|---|
Longitude | Decimal | -0.000500 | ✓ | ✓ |
Latitude | Decimal | 51.476852 | ✓ | ✓ |
Altitude | Metres (above sea level) | 139.57 | ✓ | |
Bearing | Degrees (clockwise from North) | 272.02 | ✓ | |
Speed | Metres per second | 0.67 | ✓ | |
Time | Seconds (Unix timestamp) | 1472552598 | ✓ | ✓ |
Accuracy (of the latitude/longitude values) | Metres | 626 | ✓ | ✓ |
The value of the Time property is returned as a Unix timestamp, which is an integer representing the total number of seconds from 00:00:00 01/01/1970 UTC to the point at which the data was gathered. You may want to convert the value into an appropriately formatted date/time before using it in your model.
To access the geolocation settings within KnowledgeKube, open the Question Groups dialog while editing or creating a group.
To learn how to set up and use geolocation in your model refer to the following topics:
Description | Further Reading |
---|---|
Use your model's question group to enable the capture of geolocation data. | Enabling Model Geolocation |
Follow specific rules to write geospatial coordinates into an SQL data source table. | Writing Geolocation Values to a Data Source |