glance.common.location_strategy package¶
Submodules¶
Module contents¶
-
glance.common.location_strategy.
choose_best_location
(locations, **kwargs)[source]¶ Choose best location from image location list by configured strategy.
Parameters: - locations – The original image location list.
- kwargs – Strategy-specific arguments for under layer strategy module.
Returns: The best location from image location list.
-
glance.common.location_strategy.
get_ordered_locations
(locations, **kwargs)[source]¶ Order image location list by configured strategy.
Parameters: - locations – The original image location list.
- kwargs – Strategy-specific arguments for under layer strategy module.
Returns: The image location list with strategy-specific order.