10,730
edits
(→Resource filtering: few more obscure details about this feature) |
|||
Line 150: | Line 150: | ||
<small>If a resource does not have its own GPS coordinates, GPS coordinates from the "Company Settings" entity are used. If the "Company Settings" entity does not have GPS coordinates or a "Location Address" set, such resource is filtered out too. Distance between resources and the selected source is acquired from the response from google.maps.DistanceMatrixService (Google Maps JavaScript API Distance Matrix Service). Distance is requested for the current time, or for midday of the first day in the currently shown calendar time range (if the calendar time range in the Schedule Board is in the future). Individual distances are cached and distance from cache is used if it is necessary again until Schedule Board is opened or until the distance value is replaced because it was not used for a long time.</small> | <small>If a resource does not have its own GPS coordinates, GPS coordinates from the "Company Settings" entity are used. If the "Company Settings" entity does not have GPS coordinates or a "Location Address" set, such resource is filtered out too. Distance between resources and the selected source is acquired from the response from google.maps.DistanceMatrixService (Google Maps JavaScript API Distance Matrix Service). Distance is requested for the current time, or for midday of the first day in the currently shown calendar time range (if the calendar time range in the Schedule Board is in the future). Individual distances are cached and distance from cache is used if it is necessary again until Schedule Board is opened or until the distance value is replaced because it was not used for a long time.</small> | ||
=== Live location === | |||
Optionally, you can enable live location for the distance filter: | |||
* [[Location tracking]] must be enabled and properly set up. | |||
* '''Use live location data''' must be enabled and properly set up on the [[Schedule_Board#Resource|Resource tab]] in Schedule Board configuration in Woodford. | |||
Then, the '''Live''' toggle [[File:Live button.png]] appears in the top row of the Schedule Board. If the resource has recent location data available (not older than 1 hour), live location is used to calculate the distance to the selected source. If the live location is unavailable, fallback locations are used (in the following order): | |||
* Location of the resource's current assignment | |||
* Location of the resource's previous or next assignment if within 1 hour of the current time | |||
* Home address of the resource | |||
* Company address | |||
== Source pane == | == Source pane == |