In nomad client for mobile, enter into the settings pannel and localise the "LocationService" section.
Location configuration is a root configuration section, it must be defined at the same level as ConfigurationServer section
"ConfigurationServer": {
...
},
"LocationService": {
"PostBaseUrl": "https://xxx.azurewebsites.net/api/",
"SubscriptionUrl": "wss://xxxxx.azurewebsites.net/events",
"Sensor": {
"Mode": "System",
"Periodicity": 2000,
"Origin": { "Latitude": 50.443463467183594, "Longitude": 5.5132011795043945 },
"Default": { "Latitude": 50.945041, "Longitude": 5.476057 },
"Shift": { "Latitude": -0.009665, "Longitude": 0.104166 },
"Route": [
{ "Latitude": 50.645941, "Longitude": 5.576857 },
{ "Latitude": 50.685009, "Longitude": 5.575986 },
{ "Latitude": 50.344855, "Longitude": 5.175986 }
]
}
}
PostBaseUrl: optional, this is the URL of Location Azure Function where Nomad POST its location. Default is built using authenticated user domain https://locationapi.{user-domain}/api/SubscriptionUrl: optional, this is the URL of Location Event Dispatcher. Default is built using authenticated user domain wss://locationevents.{user-domain}/events/.Sensor: optional, section describing how Nomad gather/generate location data, see following section for more details
Location Sensor Configuration
For demonstration purpose, location sensor can be configured to generate predefined or random device movings
Modeoptional, defines the sensor behavior and can take the following values:Systemis the default value and relies on device capabilities to compute geolocation dataRouteallows to configure a predefined sequence of points to simulate the device moving along a meaning full route. This might be useful for GoeFencing feature demonstrationRandomgenerates random movings from a defined originSteadykeeps a steady position
System
"Sensor": {
"Mode": "System",
"Periodicity": 2000,
"Default": { "Latitude": 50.145041, "Longitude": 5.576057 },
"Shift": { "Latitude": -0.118665, "Longitude": 0.034166 }
}
Periodicityis the number of milliseconds Nomad lets between two location refreshing, default is 10.000 msDefaultis the default location to be used when Nomad fails to gather effective location, this setting is overriden by Profile default location set in CAS Console (when set). There is no default value for "Default location" setting :)Shiftis an offset applied on real location to provide kind of privacy protection. There is no default shift, meaning real location is effectively used.
Route
"Sensor": {
"Mode": "Route",
"Periodicity": 2000,
"Route": [
{ "Latitude": 50.245041, "Longitude": 5.576057 },
{ "Latitude": 50.945009, "Longitude": 5.375886 },
{ "Latitude": 50.744855, "Longitude": 5.175986 }
]
}
Periodicityis the number of milliseconds Nomad lets between two location refreshing, default is 3.000 msRouteis an array of locations defining the route device is moving on. When Nomad reach the end of array it starts back from begging allowing to simulate infinite circular routes. There is no default route.
Tip: https://gpx.studio/ allows you to easily generate GPX files witin few clicks on a map. With few more clicks in any descent text editor, you can easily convert GPX in an array of locations and use in your route configuration :)
Random
"Sensor": {
"Mode": "Random",
"Periodicity": 2000,
"Origin": { "Latitude": 50.243463467183594, "Longitude": 5.7732011795043945 }
}
Periodicityis the number of milliseconds Nomad lets between two location refreshing, default is 5.000 msOriginis the starting location, this setting is overriden by Profile default location set in CAS Console when set. Default Origin is set to "La Maison du Pèkèt"
Steady
"Sensor": {
"Mode": "Steady",
"Periodicity": 2000,
"Origin": { "Latitude": 50.843463467183594, "Longitude": 5.1732011795043945 }
}
Periodicityis the number of milliseconds Nomad lets between two location refreshing, default is 1.800.000 ms. Location dispatching service uses a TTL of 1 hour after which it consider location as obsolete and no more relevant, that's why steady mode refresh is unchanged location every 30 minutes by default.Originis the steady location, this setting is overriden by Profile default location set in CAS Console when set. Default Origin is set to "La Maison du Pèkèt"
Comments
0 comments
Please sign in to leave a comment.