1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//! Location provenance tracking.
//!
//! This module provides types to track where geographic coordinates originated,
//! which is useful for debugging, logging, and UI display purposes.
/// Describes where latitude/longitude coordinates originated.
///
/// This enum tracks the provenance of location data to help users understand
/// whether they're using manually-entered coordinates, city database lookups,
/// or previously saved configuration.
///
/// # Examples
///
/// ```
/// use solunatus::location_source::LocationSource;
///
/// let source = LocationSource::CityDatabase;
/// assert_eq!(source.short_label(), "city");
/// ```