Private Function GPS() As PositionGps
Dim Position As Object
' Obtenir la position de l'utilisateur
Set Position = GetCurrentPosition()
' Extraire les informations de position
GPS.latitude = Replace(Position("lat"), ",", ".")
GPS.longitude = Replace(Position("lon"), ",", ".")
GPS.Ville = Position("city")
End Function