winrt-Windows.Devices.Geolocation 4!10.0.28000.2705__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,40 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import winrt.runtime._internals
4
+ import winrt.system
5
+
6
+ winrt.runtime._internals.load_projection(__spec__)
7
+
8
+ __all__ = [
9
+ "AltitudeReferenceSystem",
10
+ "GeolocationAccessStatus",
11
+ "GeoshapeType",
12
+ "PositionAccuracy",
13
+ "PositionSource",
14
+ "PositionStatus",
15
+ "VisitMonitoringScope",
16
+ "VisitStateChange",
17
+ "BasicGeoposition",
18
+ "CivicAddress",
19
+ "GeoboundingBox",
20
+ "Geocircle",
21
+ "Geocoordinate",
22
+ "GeocoordinateSatelliteData",
23
+ "Geolocator",
24
+ "Geopath",
25
+ "Geopoint",
26
+ "Geoposition",
27
+ "Geovisit",
28
+ "GeovisitMonitor",
29
+ "GeovisitStateChangedEventArgs",
30
+ "GeovisitTriggerDetails",
31
+ "PositionChangedEventArgs",
32
+ "StatusChangedEventArgs",
33
+ "VenueData",
34
+ "IGeoshape",
35
+ ]
36
+
37
+ winrt.runtime._internals.alias_static_method(GeoboundingBox, "try_compute_with_altitude_reference", "try_compute")
38
+ winrt.runtime._internals.alias_static_method(GeoboundingBox, "try_compute_with_altitude_reference_and_spatial_reference", "try_compute")
39
+ winrt.runtime._internals.alias_method(Geolocator, "get_geoposition_async_with_age_and_timeout", "get_geoposition_async")
40
+ winrt.runtime._internals.alias_static_method(Geolocator, "get_geoposition_history_with_duration_async", "get_geoposition_history_async")
@@ -0,0 +1,492 @@
1
+ # WARNING: Please don't edit this file. It was generated by Python/WinRT
2
+
3
+ import collections.abc as _cabc
4
+ import datetime
5
+ import enum
6
+ import typing
7
+ from builtins import property as _property
8
+ from abc import abstractmethod
9
+ from typing_extensions import deprecated
10
+
11
+ import winrt.system
12
+ import winrt.windows.foundation as windows_foundation
13
+ import winrt.windows.foundation.collections as windows_foundation_collections
14
+
15
+ __all__ = [
16
+ "AltitudeReferenceSystem",
17
+ "GeolocationAccessStatus",
18
+ "GeoshapeType",
19
+ "PositionAccuracy",
20
+ "PositionSource",
21
+ "PositionStatus",
22
+ "VisitMonitoringScope",
23
+ "VisitStateChange",
24
+ "BasicGeoposition",
25
+ "CivicAddress",
26
+ "GeoboundingBox",
27
+ "Geocircle",
28
+ "Geocoordinate",
29
+ "GeocoordinateSatelliteData",
30
+ "Geolocator",
31
+ "Geopath",
32
+ "Geopoint",
33
+ "Geoposition",
34
+ "Geovisit",
35
+ "GeovisitMonitor",
36
+ "GeovisitStateChangedEventArgs",
37
+ "GeovisitTriggerDetails",
38
+ "PositionChangedEventArgs",
39
+ "StatusChangedEventArgs",
40
+ "VenueData",
41
+ "IGeoshape",
42
+ ]
43
+
44
+ class AltitudeReferenceSystem(enum.IntEnum):
45
+ UNSPECIFIED = 0
46
+ TERRAIN = 1
47
+ ELLIPSOID = 2
48
+ GEOID = 3
49
+ SURFACE = 4
50
+
51
+ class GeolocationAccessStatus(enum.IntEnum):
52
+ UNSPECIFIED = 0
53
+ ALLOWED = 1
54
+ DENIED = 2
55
+
56
+ class GeoshapeType(enum.IntEnum):
57
+ GEOPOINT = 0
58
+ GEOCIRCLE = 1
59
+ GEOPATH = 2
60
+ GEOBOUNDING_BOX = 3
61
+
62
+ class PositionAccuracy(enum.IntEnum):
63
+ DEFAULT = 0
64
+ HIGH = 1
65
+
66
+ class PositionSource(enum.IntEnum):
67
+ CELLULAR = 0
68
+ SATELLITE = 1
69
+ WI_FI = 2
70
+ IP_ADDRESS = 3
71
+ UNKNOWN = 4
72
+ DEFAULT = 5
73
+ OBFUSCATED = 6
74
+
75
+ class PositionStatus(enum.IntEnum):
76
+ READY = 0
77
+ INITIALIZING = 1
78
+ NO_DATA = 2
79
+ DISABLED = 3
80
+ NOT_INITIALIZED = 4
81
+ NOT_AVAILABLE = 5
82
+
83
+ class VisitMonitoringScope(enum.IntEnum):
84
+ VENUE = 0
85
+ CITY = 1
86
+
87
+ class VisitStateChange(enum.IntEnum):
88
+ TRACKING_LOST = 0
89
+ ARRIVED = 1
90
+ DEPARTED = 2
91
+ OTHER_MOVEMENT = 3
92
+
93
+ @typing.final
94
+ class BasicGeoposition:
95
+ __match_args__ = ("latitude", "longitude", "altitude")
96
+ @_property
97
+ def latitude(self) -> winrt.system.Double: ...
98
+ @_property
99
+ def longitude(self) -> winrt.system.Double: ...
100
+ @_property
101
+ def altitude(self) -> winrt.system.Double: ...
102
+ def __new__(cls, latitude: winrt.system.Double = 0, longitude: winrt.system.Double = 0, altitude: winrt.system.Double = 0) -> BasicGeoposition: ...
103
+ def __replace__(self, /, **changes: typing.Any) -> BasicGeoposition: ...
104
+ def unpack(self) -> tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double]: ...
105
+
106
+ @typing.final
107
+ class CivicAddress(winrt.system.Object):
108
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
109
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
110
+ # System.String Windows.Devices.Geolocation.CivicAddress::get_City()
111
+ @_property
112
+ def city(self) -> str: ...
113
+ # System.String Windows.Devices.Geolocation.CivicAddress::get_Country()
114
+ @_property
115
+ def country(self) -> str: ...
116
+ # System.String Windows.Devices.Geolocation.CivicAddress::get_PostalCode()
117
+ @_property
118
+ def postal_code(self) -> str: ...
119
+ # System.String Windows.Devices.Geolocation.CivicAddress::get_State()
120
+ @_property
121
+ def state(self) -> str: ...
122
+ # Windows.Foundation.DateTime Windows.Devices.Geolocation.CivicAddress::get_Timestamp()
123
+ @_property
124
+ def timestamp(self) -> datetime.datetime: ...
125
+
126
+ @typing.final
127
+ class GeoboundingBox_Static(winrt.system.Object_Static):
128
+ @typing.overload
129
+ # Windows.Devices.Geolocation.GeoboundingBox Windows.Devices.Geolocation.GeoboundingBox::TryCompute(Windows.Foundation.Collections.IIterable`1<Windows.Devices.Geolocation.BasicGeoposition>)
130
+ def try_compute(cls, positions: _cabc.Iterable[BasicGeoposition], /) -> GeoboundingBox: ...
131
+ @typing.overload
132
+ # Windows.Devices.Geolocation.GeoboundingBox Windows.Devices.Geolocation.GeoboundingBox::TryCompute(Windows.Foundation.Collections.IIterable`1<Windows.Devices.Geolocation.BasicGeoposition>,Windows.Devices.Geolocation.AltitudeReferenceSystem)
133
+ def try_compute(cls, positions: _cabc.Iterable[BasicGeoposition], altitude_ref_system: AltitudeReferenceSystem, /) -> GeoboundingBox: ...
134
+ @typing.overload
135
+ # Windows.Devices.Geolocation.GeoboundingBox Windows.Devices.Geolocation.GeoboundingBox::TryCompute(Windows.Foundation.Collections.IIterable`1<Windows.Devices.Geolocation.BasicGeoposition>,Windows.Devices.Geolocation.AltitudeReferenceSystem,System.UInt32)
136
+ def try_compute(cls, positions: _cabc.Iterable[BasicGeoposition], altitude_ref_system: AltitudeReferenceSystem, spatial_reference_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> GeoboundingBox: ...
137
+ # Deprecated alias of try_compute() for pywinrt v3.x compatibility.
138
+ # Windows.Devices.Geolocation.GeoboundingBox Windows.Devices.Geolocation.GeoboundingBox::TryCompute(Windows.Foundation.Collections.IIterable`1<Windows.Devices.Geolocation.BasicGeoposition>,Windows.Devices.Geolocation.AltitudeReferenceSystem)
139
+ @deprecated("Use try_compute() instead.")
140
+ def try_compute_with_altitude_reference(cls, positions: _cabc.Iterable[BasicGeoposition], altitude_ref_system: AltitudeReferenceSystem, /) -> GeoboundingBox: ...
141
+ # Deprecated alias of try_compute() for pywinrt v3.x compatibility.
142
+ # Windows.Devices.Geolocation.GeoboundingBox Windows.Devices.Geolocation.GeoboundingBox::TryCompute(Windows.Foundation.Collections.IIterable`1<Windows.Devices.Geolocation.BasicGeoposition>,Windows.Devices.Geolocation.AltitudeReferenceSystem,System.UInt32)
143
+ @deprecated("Use try_compute() instead.")
144
+ def try_compute_with_altitude_reference_and_spatial_reference(cls, positions: _cabc.Iterable[BasicGeoposition], altitude_ref_system: AltitudeReferenceSystem, spatial_reference_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> GeoboundingBox: ...
145
+
146
+ @typing.final
147
+ class GeoboundingBox(IGeoshape, winrt.system.Object, metaclass=GeoboundingBox_Static):
148
+ @typing.overload
149
+ def __new__(cls, northwest_corner: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], southeast_corner: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], /) -> typing.Self: ...
150
+ @typing.overload
151
+ def __new__(cls, northwest_corner: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], southeast_corner: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], altitude_reference_system: AltitudeReferenceSystem, /) -> typing.Self: ...
152
+ @typing.overload
153
+ def __new__(cls, northwest_corner: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], southeast_corner: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], altitude_reference_system: AltitudeReferenceSystem, spatial_reference_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> typing.Self: ...
154
+ # Windows.Devices.Geolocation.BasicGeoposition Windows.Devices.Geolocation.GeoboundingBox::get_Center()
155
+ @_property
156
+ def center(self) -> BasicGeoposition: ...
157
+ # System.Double Windows.Devices.Geolocation.GeoboundingBox::get_MaxAltitude()
158
+ @_property
159
+ def max_altitude(self) -> winrt.system.Double: ...
160
+ # System.Double Windows.Devices.Geolocation.GeoboundingBox::get_MinAltitude()
161
+ @_property
162
+ def min_altitude(self) -> winrt.system.Double: ...
163
+ # Windows.Devices.Geolocation.BasicGeoposition Windows.Devices.Geolocation.GeoboundingBox::get_NorthwestCorner()
164
+ @_property
165
+ def northwest_corner(self) -> BasicGeoposition: ...
166
+ # Windows.Devices.Geolocation.BasicGeoposition Windows.Devices.Geolocation.GeoboundingBox::get_SoutheastCorner()
167
+ @_property
168
+ def southeast_corner(self) -> BasicGeoposition: ...
169
+ # Windows.Devices.Geolocation.AltitudeReferenceSystem Windows.Devices.Geolocation.GeoboundingBox::get_AltitudeReferenceSystem()
170
+ @_property
171
+ def altitude_reference_system(self) -> AltitudeReferenceSystem: ...
172
+ # Windows.Devices.Geolocation.GeoshapeType Windows.Devices.Geolocation.GeoboundingBox::get_GeoshapeType()
173
+ @_property
174
+ def geoshape_type(self) -> GeoshapeType: ...
175
+ # System.UInt32 Windows.Devices.Geolocation.GeoboundingBox::get_SpatialReferenceId()
176
+ @_property
177
+ def spatial_reference_id(self) -> winrt.system.UInt32: ...
178
+
179
+ @typing.final
180
+ class Geocircle(IGeoshape, winrt.system.Object):
181
+ @typing.overload
182
+ def __new__(cls, position: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], radius: winrt.system.Double, /) -> typing.Self: ...
183
+ @typing.overload
184
+ def __new__(cls, position: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], radius: winrt.system.Double, altitude_reference_system: AltitudeReferenceSystem, /) -> typing.Self: ...
185
+ @typing.overload
186
+ def __new__(cls, position: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], radius: winrt.system.Double, altitude_reference_system: AltitudeReferenceSystem, spatial_reference_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> typing.Self: ...
187
+ # Windows.Devices.Geolocation.BasicGeoposition Windows.Devices.Geolocation.Geocircle::get_Center()
188
+ @_property
189
+ def center(self) -> BasicGeoposition: ...
190
+ # System.Double Windows.Devices.Geolocation.Geocircle::get_Radius()
191
+ @_property
192
+ def radius(self) -> winrt.system.Double: ...
193
+ # Windows.Devices.Geolocation.AltitudeReferenceSystem Windows.Devices.Geolocation.Geocircle::get_AltitudeReferenceSystem()
194
+ @_property
195
+ def altitude_reference_system(self) -> AltitudeReferenceSystem: ...
196
+ # Windows.Devices.Geolocation.GeoshapeType Windows.Devices.Geolocation.Geocircle::get_GeoshapeType()
197
+ @_property
198
+ def geoshape_type(self) -> GeoshapeType: ...
199
+ # System.UInt32 Windows.Devices.Geolocation.Geocircle::get_SpatialReferenceId()
200
+ @_property
201
+ def spatial_reference_id(self) -> winrt.system.UInt32: ...
202
+
203
+ @typing.final
204
+ class Geocoordinate(winrt.system.Object):
205
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
206
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
207
+ # System.Double Windows.Devices.Geolocation.Geocoordinate::get_Accuracy()
208
+ @_property
209
+ def accuracy(self) -> winrt.system.Double: ...
210
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.Geocoordinate::get_Altitude()
211
+ @_property
212
+ @deprecated("Altitude may be altered or unavailable after Windows 8.1. Instead, use Point.Position.Altitude")
213
+ def altitude(self) -> winrt.system.Double | None: ...
214
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.Geocoordinate::get_AltitudeAccuracy()
215
+ @_property
216
+ def altitude_accuracy(self) -> winrt.system.Double | None: ...
217
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.Geocoordinate::get_Heading()
218
+ @_property
219
+ def heading(self) -> winrt.system.Double | None: ...
220
+ # System.Double Windows.Devices.Geolocation.Geocoordinate::get_Latitude()
221
+ @_property
222
+ @deprecated("Latitude may be altered or unavailable after Windows 8.1. Instead, use Point.Position.Latitude")
223
+ def latitude(self) -> winrt.system.Double: ...
224
+ # System.Double Windows.Devices.Geolocation.Geocoordinate::get_Longitude()
225
+ @_property
226
+ @deprecated("Longitude may be altered or unavailable after Windows 8.1. Instead, use Point.Position.Longitude")
227
+ def longitude(self) -> winrt.system.Double: ...
228
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.Geocoordinate::get_Speed()
229
+ @_property
230
+ def speed(self) -> winrt.system.Double | None: ...
231
+ # Windows.Foundation.DateTime Windows.Devices.Geolocation.Geocoordinate::get_Timestamp()
232
+ @_property
233
+ def timestamp(self) -> datetime.datetime: ...
234
+ # Windows.Devices.Geolocation.Geopoint Windows.Devices.Geolocation.Geocoordinate::get_Point()
235
+ @_property
236
+ def point(self) -> Geopoint: ...
237
+ # Windows.Devices.Geolocation.PositionSource Windows.Devices.Geolocation.Geocoordinate::get_PositionSource()
238
+ @_property
239
+ def position_source(self) -> PositionSource: ...
240
+ # Windows.Devices.Geolocation.GeocoordinateSatelliteData Windows.Devices.Geolocation.Geocoordinate::get_SatelliteData()
241
+ @_property
242
+ def satellite_data(self) -> GeocoordinateSatelliteData: ...
243
+ # Windows.Foundation.IReference`1<Windows.Foundation.DateTime> Windows.Devices.Geolocation.Geocoordinate::get_PositionSourceTimestamp()
244
+ @_property
245
+ def position_source_timestamp(self) -> datetime.datetime | None: ...
246
+ # System.Boolean Windows.Devices.Geolocation.Geocoordinate::get_IsRemoteSource()
247
+ @_property
248
+ def is_remote_source(self) -> bool: ...
249
+
250
+ @typing.final
251
+ class GeocoordinateSatelliteData(winrt.system.Object):
252
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
253
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
254
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.GeocoordinateSatelliteData::get_HorizontalDilutionOfPrecision()
255
+ @_property
256
+ def horizontal_dilution_of_precision(self) -> winrt.system.Double | None: ...
257
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.GeocoordinateSatelliteData::get_PositionDilutionOfPrecision()
258
+ @_property
259
+ def position_dilution_of_precision(self) -> winrt.system.Double | None: ...
260
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.GeocoordinateSatelliteData::get_VerticalDilutionOfPrecision()
261
+ @_property
262
+ def vertical_dilution_of_precision(self) -> winrt.system.Double | None: ...
263
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.GeocoordinateSatelliteData::get_GeometricDilutionOfPrecision()
264
+ @_property
265
+ def geometric_dilution_of_precision(self) -> winrt.system.Double | None: ...
266
+ # Windows.Foundation.IReference`1<System.Double> Windows.Devices.Geolocation.GeocoordinateSatelliteData::get_TimeDilutionOfPrecision()
267
+ @_property
268
+ def time_dilution_of_precision(self) -> winrt.system.Double | None: ...
269
+
270
+ @typing.final
271
+ class Geolocator_Static(winrt.system.Object_Static):
272
+ @typing.overload
273
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Devices.Geolocation.Geoposition>> Windows.Devices.Geolocation.Geolocator::GetGeopositionHistoryAsync(Windows.Foundation.DateTime)
274
+ @deprecated("GetGeopositionHistoryAsync is deprecated and might not work on all platforms. For more info, see MSDN.")
275
+ def get_geoposition_history_async(cls, start_time: datetime.datetime, /) -> windows_foundation.IAsyncOperation[_cabc.Sequence[Geoposition]]: ...
276
+ @typing.overload
277
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Devices.Geolocation.Geoposition>> Windows.Devices.Geolocation.Geolocator::GetGeopositionHistoryAsync(Windows.Foundation.DateTime,Windows.Foundation.TimeSpan)
278
+ @deprecated("GetGeopositionHistoryWithDurationAsync is deprecated and might not work on all platforms. For more info, see MSDN.")
279
+ def get_geoposition_history_async(cls, start_time: datetime.datetime, duration: datetime.timedelta, /) -> windows_foundation.IAsyncOperation[_cabc.Sequence[Geoposition]]: ...
280
+ # Deprecated alias of get_geoposition_history_async() for pywinrt v3.x compatibility.
281
+ # Windows.Foundation.IAsyncOperation`1<Windows.Foundation.Collections.IVectorView`1<Windows.Devices.Geolocation.Geoposition>> Windows.Devices.Geolocation.Geolocator::GetGeopositionHistoryAsync(Windows.Foundation.DateTime,Windows.Foundation.TimeSpan)
282
+ @deprecated("Use get_geoposition_history_async() instead.")
283
+ def get_geoposition_history_with_duration_async(cls, start_time: datetime.datetime, duration: datetime.timedelta, /) -> windows_foundation.IAsyncOperation[_cabc.Sequence[Geoposition]]: ...
284
+ # Windows.Foundation.IAsyncOperation`1<Windows.Devices.Geolocation.GeolocationAccessStatus> Windows.Devices.Geolocation.Geolocator::RequestAccessAsync()
285
+ def request_access_async(cls) -> windows_foundation.IAsyncOperation[GeolocationAccessStatus]: ...
286
+ # Windows.Foundation.IReference`1<Windows.Devices.Geolocation.BasicGeoposition> Windows.Devices.Geolocation.Geolocator::get_DefaultGeoposition()
287
+ @_property
288
+ def default_geoposition(cls) -> BasicGeoposition | None: ...
289
+ # System.Void Windows.Devices.Geolocation.Geolocator::put_DefaultGeoposition(Windows.Foundation.IReference`1<Windows.Devices.Geolocation.BasicGeoposition>)
290
+ @default_geoposition.setter
291
+ def default_geoposition(cls, value: BasicGeoposition | None) -> None: ...
292
+ # System.Boolean Windows.Devices.Geolocation.Geolocator::get_IsDefaultGeopositionRecommended()
293
+ @_property
294
+ def is_default_geoposition_recommended(cls) -> bool: ...
295
+
296
+ @typing.final
297
+ class Geolocator(winrt.system.Object, metaclass=Geolocator_Static):
298
+ def __new__(cls) -> typing.Self: ...
299
+ # System.Void Windows.Devices.Geolocation.Geolocator::AllowFallbackToConsentlessPositions()
300
+ def allow_fallback_to_consentless_positions(self) -> None: ...
301
+ @typing.overload
302
+ # Windows.Foundation.IAsyncOperation`1<Windows.Devices.Geolocation.Geoposition> Windows.Devices.Geolocation.Geolocator::GetGeopositionAsync()
303
+ def get_geoposition_async(self) -> windows_foundation.IAsyncOperation[Geoposition]: ...
304
+ @typing.overload
305
+ # Windows.Foundation.IAsyncOperation`1<Windows.Devices.Geolocation.Geoposition> Windows.Devices.Geolocation.Geolocator::GetGeopositionAsync(Windows.Foundation.TimeSpan,Windows.Foundation.TimeSpan)
306
+ def get_geoposition_async(self, maximum_age: datetime.timedelta, timeout: datetime.timedelta, /) -> windows_foundation.IAsyncOperation[Geoposition]: ...
307
+ # Deprecated alias of get_geoposition_async() for pywinrt v3.x compatibility.
308
+ # Windows.Foundation.IAsyncOperation`1<Windows.Devices.Geolocation.Geoposition> Windows.Devices.Geolocation.Geolocator::GetGeopositionAsync(Windows.Foundation.TimeSpan,Windows.Foundation.TimeSpan)
309
+ @deprecated("Use get_geoposition_async() instead.")
310
+ def get_geoposition_async_with_age_and_timeout(self, maximum_age: datetime.timedelta, timeout: datetime.timedelta, /) -> windows_foundation.IAsyncOperation[Geoposition]: ...
311
+ # Windows.Foundation.EventRegistrationToken Windows.Devices.Geolocation.Geolocator::add_PositionChanged(Windows.Foundation.TypedEventHandler`2<Windows.Devices.Geolocation.Geolocator,Windows.Devices.Geolocation.PositionChangedEventArgs>)
312
+ def add_position_changed(self, handler: windows_foundation.TypedEventHandler[Geolocator, PositionChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
313
+ # System.Void Windows.Devices.Geolocation.Geolocator::remove_PositionChanged(Windows.Foundation.EventRegistrationToken)
314
+ def remove_position_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
315
+ # Windows.Foundation.EventRegistrationToken Windows.Devices.Geolocation.Geolocator::add_StatusChanged(Windows.Foundation.TypedEventHandler`2<Windows.Devices.Geolocation.Geolocator,Windows.Devices.Geolocation.StatusChangedEventArgs>)
316
+ def add_status_changed(self, handler: windows_foundation.TypedEventHandler[Geolocator, StatusChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
317
+ # System.Void Windows.Devices.Geolocation.Geolocator::remove_StatusChanged(Windows.Foundation.EventRegistrationToken)
318
+ def remove_status_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
319
+ # System.UInt32 Windows.Devices.Geolocation.Geolocator::get_ReportInterval()
320
+ @_property
321
+ def report_interval(self) -> winrt.system.UInt32: ...
322
+ # System.Void Windows.Devices.Geolocation.Geolocator::put_ReportInterval(System.UInt32)
323
+ @report_interval.setter
324
+ def report_interval(self, value: winrt.system.UInt32 | typing.SupportsIndex) -> None: ...
325
+ # System.Double Windows.Devices.Geolocation.Geolocator::get_MovementThreshold()
326
+ @_property
327
+ def movement_threshold(self) -> winrt.system.Double: ...
328
+ # System.Void Windows.Devices.Geolocation.Geolocator::put_MovementThreshold(System.Double)
329
+ @movement_threshold.setter
330
+ def movement_threshold(self, value: winrt.system.Double) -> None: ...
331
+ # Windows.Devices.Geolocation.PositionAccuracy Windows.Devices.Geolocation.Geolocator::get_DesiredAccuracy()
332
+ @_property
333
+ def desired_accuracy(self) -> PositionAccuracy: ...
334
+ # System.Void Windows.Devices.Geolocation.Geolocator::put_DesiredAccuracy(Windows.Devices.Geolocation.PositionAccuracy)
335
+ @desired_accuracy.setter
336
+ def desired_accuracy(self, value: PositionAccuracy) -> None: ...
337
+ # Windows.Devices.Geolocation.PositionStatus Windows.Devices.Geolocation.Geolocator::get_LocationStatus()
338
+ @_property
339
+ def location_status(self) -> PositionStatus: ...
340
+ # Windows.Foundation.IReference`1<System.UInt32> Windows.Devices.Geolocation.Geolocator::get_DesiredAccuracyInMeters()
341
+ @_property
342
+ def desired_accuracy_in_meters(self) -> winrt.system.UInt32 | None: ...
343
+ # System.Void Windows.Devices.Geolocation.Geolocator::put_DesiredAccuracyInMeters(Windows.Foundation.IReference`1<System.UInt32>)
344
+ @desired_accuracy_in_meters.setter
345
+ def desired_accuracy_in_meters(self, value: winrt.system.UInt32 | None) -> None: ...
346
+
347
+ @typing.final
348
+ class Geopath(IGeoshape, winrt.system.Object):
349
+ @typing.overload
350
+ def __new__(cls, positions: _cabc.Iterable[BasicGeoposition], /) -> typing.Self: ...
351
+ @typing.overload
352
+ def __new__(cls, positions: _cabc.Iterable[BasicGeoposition], altitude_reference_system: AltitudeReferenceSystem, /) -> typing.Self: ...
353
+ @typing.overload
354
+ def __new__(cls, positions: _cabc.Iterable[BasicGeoposition], altitude_reference_system: AltitudeReferenceSystem, spatial_reference_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> typing.Self: ...
355
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Devices.Geolocation.BasicGeoposition> Windows.Devices.Geolocation.Geopath::get_Positions()
356
+ @_property
357
+ def positions(self) -> _cabc.Sequence[BasicGeoposition]: ...
358
+ # Windows.Devices.Geolocation.AltitudeReferenceSystem Windows.Devices.Geolocation.Geopath::get_AltitudeReferenceSystem()
359
+ @_property
360
+ def altitude_reference_system(self) -> AltitudeReferenceSystem: ...
361
+ # Windows.Devices.Geolocation.GeoshapeType Windows.Devices.Geolocation.Geopath::get_GeoshapeType()
362
+ @_property
363
+ def geoshape_type(self) -> GeoshapeType: ...
364
+ # System.UInt32 Windows.Devices.Geolocation.Geopath::get_SpatialReferenceId()
365
+ @_property
366
+ def spatial_reference_id(self) -> winrt.system.UInt32: ...
367
+
368
+ @typing.final
369
+ class Geopoint(IGeoshape, winrt.system.Object):
370
+ @typing.overload
371
+ def __new__(cls, position: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], /) -> typing.Self: ...
372
+ @typing.overload
373
+ def __new__(cls, position: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], altitude_reference_system: AltitudeReferenceSystem, /) -> typing.Self: ...
374
+ @typing.overload
375
+ def __new__(cls, position: BasicGeoposition | tuple[winrt.system.Double, winrt.system.Double, winrt.system.Double], altitude_reference_system: AltitudeReferenceSystem, spatial_reference_id: winrt.system.UInt32 | typing.SupportsIndex, /) -> typing.Self: ...
376
+ # Windows.Devices.Geolocation.BasicGeoposition Windows.Devices.Geolocation.Geopoint::get_Position()
377
+ @_property
378
+ def position(self) -> BasicGeoposition: ...
379
+ # Windows.Devices.Geolocation.AltitudeReferenceSystem Windows.Devices.Geolocation.Geopoint::get_AltitudeReferenceSystem()
380
+ @_property
381
+ def altitude_reference_system(self) -> AltitudeReferenceSystem: ...
382
+ # Windows.Devices.Geolocation.GeoshapeType Windows.Devices.Geolocation.Geopoint::get_GeoshapeType()
383
+ @_property
384
+ def geoshape_type(self) -> GeoshapeType: ...
385
+ # System.UInt32 Windows.Devices.Geolocation.Geopoint::get_SpatialReferenceId()
386
+ @_property
387
+ def spatial_reference_id(self) -> winrt.system.UInt32: ...
388
+
389
+ @typing.final
390
+ class Geoposition(winrt.system.Object):
391
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
392
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
393
+ # Windows.Devices.Geolocation.CivicAddress Windows.Devices.Geolocation.Geoposition::get_CivicAddress()
394
+ @_property
395
+ def civic_address(self) -> CivicAddress: ...
396
+ # Windows.Devices.Geolocation.Geocoordinate Windows.Devices.Geolocation.Geoposition::get_Coordinate()
397
+ @_property
398
+ def coordinate(self) -> Geocoordinate: ...
399
+ # Windows.Devices.Geolocation.VenueData Windows.Devices.Geolocation.Geoposition::get_VenueData()
400
+ @_property
401
+ def venue_data(self) -> VenueData: ...
402
+
403
+ @typing.final
404
+ class Geovisit(winrt.system.Object):
405
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
406
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
407
+ # Windows.Devices.Geolocation.Geoposition Windows.Devices.Geolocation.Geovisit::get_Position()
408
+ @_property
409
+ def position(self) -> Geoposition: ...
410
+ # Windows.Devices.Geolocation.VisitStateChange Windows.Devices.Geolocation.Geovisit::get_StateChange()
411
+ @_property
412
+ def state_change(self) -> VisitStateChange: ...
413
+ # Windows.Foundation.DateTime Windows.Devices.Geolocation.Geovisit::get_Timestamp()
414
+ @_property
415
+ def timestamp(self) -> datetime.datetime: ...
416
+
417
+ @typing.final
418
+ class GeovisitMonitor_Static(winrt.system.Object_Static):
419
+ # Windows.Foundation.IAsyncOperation`1<Windows.Devices.Geolocation.Geovisit> Windows.Devices.Geolocation.GeovisitMonitor::GetLastReportAsync()
420
+ def get_last_report_async(cls) -> windows_foundation.IAsyncOperation[Geovisit]: ...
421
+
422
+ @typing.final
423
+ class GeovisitMonitor(winrt.system.Object, metaclass=GeovisitMonitor_Static):
424
+ def __new__(cls) -> typing.Self: ...
425
+ # System.Void Windows.Devices.Geolocation.GeovisitMonitor::Start(Windows.Devices.Geolocation.VisitMonitoringScope)
426
+ def start(self, value: VisitMonitoringScope, /) -> None: ...
427
+ # System.Void Windows.Devices.Geolocation.GeovisitMonitor::Stop()
428
+ def stop(self) -> None: ...
429
+ # Windows.Foundation.EventRegistrationToken Windows.Devices.Geolocation.GeovisitMonitor::add_VisitStateChanged(Windows.Foundation.TypedEventHandler`2<Windows.Devices.Geolocation.GeovisitMonitor,Windows.Devices.Geolocation.GeovisitStateChangedEventArgs>)
430
+ def add_visit_state_changed(self, handler: windows_foundation.TypedEventHandler[GeovisitMonitor, GeovisitStateChangedEventArgs], /) -> windows_foundation.EventRegistrationToken: ...
431
+ # System.Void Windows.Devices.Geolocation.GeovisitMonitor::remove_VisitStateChanged(Windows.Foundation.EventRegistrationToken)
432
+ def remove_visit_state_changed(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
433
+ # Windows.Devices.Geolocation.VisitMonitoringScope Windows.Devices.Geolocation.GeovisitMonitor::get_MonitoringScope()
434
+ @_property
435
+ def monitoring_scope(self) -> VisitMonitoringScope: ...
436
+
437
+ @typing.final
438
+ class GeovisitStateChangedEventArgs(winrt.system.Object):
439
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
440
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
441
+ # Windows.Devices.Geolocation.Geovisit Windows.Devices.Geolocation.GeovisitStateChangedEventArgs::get_Visit()
442
+ @_property
443
+ def visit(self) -> Geovisit: ...
444
+
445
+ @typing.final
446
+ class GeovisitTriggerDetails(winrt.system.Object):
447
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
448
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
449
+ # Windows.Foundation.Collections.IVectorView`1<Windows.Devices.Geolocation.Geovisit> Windows.Devices.Geolocation.GeovisitTriggerDetails::ReadReports()
450
+ def read_reports(self) -> _cabc.Sequence[Geovisit]: ...
451
+
452
+ @typing.final
453
+ class PositionChangedEventArgs(winrt.system.Object):
454
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
455
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
456
+ # Windows.Devices.Geolocation.Geoposition Windows.Devices.Geolocation.PositionChangedEventArgs::get_Position()
457
+ @_property
458
+ def position(self) -> Geoposition: ...
459
+
460
+ @typing.final
461
+ class StatusChangedEventArgs(winrt.system.Object):
462
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
463
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
464
+ # Windows.Devices.Geolocation.PositionStatus Windows.Devices.Geolocation.StatusChangedEventArgs::get_Status()
465
+ @_property
466
+ def status(self) -> PositionStatus: ...
467
+
468
+ @typing.final
469
+ class VenueData(winrt.system.Object):
470
+ def __new__(cls, _: typing.Never, /) -> typing.Self:
471
+ """WinRT gives this class no constructor; an instance comes from a method or property that returns one."""
472
+ # System.String Windows.Devices.Geolocation.VenueData::get_Id()
473
+ @_property
474
+ def id(self) -> str: ...
475
+ # System.String Windows.Devices.Geolocation.VenueData::get_Level()
476
+ @_property
477
+ def level(self) -> str: ...
478
+
479
+ class IGeoshape(winrt.system.Object):
480
+ # Windows.Devices.Geolocation.AltitudeReferenceSystem Windows.Devices.Geolocation.IGeoshape::get_AltitudeReferenceSystem()
481
+ @_property
482
+ @abstractmethod
483
+ def altitude_reference_system(self) -> AltitudeReferenceSystem: ...
484
+ # Windows.Devices.Geolocation.GeoshapeType Windows.Devices.Geolocation.IGeoshape::get_GeoshapeType()
485
+ @_property
486
+ @abstractmethod
487
+ def geoshape_type(self) -> GeoshapeType: ...
488
+ # System.UInt32 Windows.Devices.Geolocation.IGeoshape::get_SpatialReferenceId()
489
+ @_property
490
+ @abstractmethod
491
+ def spatial_reference_id(self) -> winrt.system.UInt32: ...
492
+
File without changes
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.5
2
+ Name: winrt-Windows.Devices.Geolocation
3
+ Version: 4!10.0.28000.2705
4
+ Summary: PyWinRT projection of the Windows.Devices.Geolocation namespace
5
+ Project-URL: Documentation, https://pywinrt.readthedocs.io
6
+ Project-URL: Repository, https://github.com/pywinrt/pywinrt
7
+ Project-URL: Changelog, https://github.com/pywinrt/pywinrt/blob/main/projection/winrt/CHANGELOG.md
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Operating System :: Microsoft :: Windows
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.11
14
+ Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Programming Language :: Python :: 3.15
18
+ Classifier: Programming Language :: Python :: Free Threading :: 2 - Beta
19
+ Classifier: Programming Language :: Python :: Implementation :: CPython
20
+ Classifier: Typing :: Typed
21
+ Requires-Python: >=3.11
22
+ Requires-Dist: winrt-runtime<5,>=4.0.0
23
+ Requires-Dist: winrt-windows-foundation-collections>=4!10.0.28000.2705
24
+ Requires-Dist: winrt-windows-foundation>=4!10.0.28000.2705
25
+ Provides-Extra: all
26
+ Requires-Dist: winrt-windows-foundation-collections[all]>=4!10.0.28000.2705; extra == 'all'
27
+ Requires-Dist: winrt-windows-foundation[all]>=4!10.0.28000.2705; extra == 'all'
28
+ Description-Content-Type: text/markdown
29
+
30
+ <!-- warning: Please don't edit this file. It was automatically generated. -->
31
+
32
+ # winrt-Windows.Devices.Geolocation
33
+
34
+ Windows Runtime (WinRT) APIs for the `Windows.Devices.Geolocation` namespace.
35
+
36
+ This package provides the `winrt.windows.devices.geolocation` module.
37
+
38
+ The WinRT APIs in it are those of version 10.0.28000.2705 of the
39
+ `Microsoft.Windows.SDK.CPP` NuGet package.
40
+
41
+ ```
42
+ pip install winrt-Windows.Devices.Geolocation
43
+ ```
44
+
45
+ Other WinRT namespaces are packages of their own, so install the package of
46
+ each namespace your code imports from.
@@ -0,0 +1,8 @@
1
+ winrt/windows/devices/geolocation/__init__.py,sha256=cW4qkdo8RGTeh7H-4wWhJqrhGnjZQWmE6W7JQTeDcWo,1314
2
+ winrt/windows/devices/geolocation/__init__.pyi,sha256=aNaTEpJwPsy5WjBlQoB3w-E_RVYt-1SCAquxYv4nGoo,30114
3
+ winrt/windows/devices/geolocation/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ winrt/windows/devices/geolocation/_table.pywinrt,sha256=hheYUjPdL_UM6ATQ_gmmIknJlm_8NWqoA6vS97jOmhk,49040
5
+ winrt_windows_devices_geolocation-4!10.0.28000.2705.dist-info/METADATA,sha256=olivmBpEZawJURGvZY2IRIkmwzAZq1gFQikewj_zj3k,1971
6
+ winrt_windows_devices_geolocation-4!10.0.28000.2705.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
7
+ winrt_windows_devices_geolocation-4!10.0.28000.2705.dist-info/licenses/LICENSE,sha256=dyVKOMqPV0fimbzMhqN3zpg6K6Y2OlekwrdfiZTBm8M,1225
8
+ winrt_windows_devices_geolocation-4!10.0.28000.2705.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,22 @@
1
+ MIT License
2
+
3
+ Copyright (c) Microsoft Corporation. All rights reserved.
4
+ Copyright (c) 2021-2026 David Lechner <david@pybricks.com>
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE