From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/fr/web/api/geolocationposition/index.html | 62 ++++++++++++++++++++++ .../api/geolocationposition/timestamp/index.html | 49 +++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 files/fr/web/api/geolocationposition/index.html create mode 100644 files/fr/web/api/geolocationposition/timestamp/index.html (limited to 'files/fr/web/api/geolocationposition') diff --git a/files/fr/web/api/geolocationposition/index.html b/files/fr/web/api/geolocationposition/index.html new file mode 100644 index 0000000000..a0fae10cc7 --- /dev/null +++ b/files/fr/web/api/geolocationposition/index.html @@ -0,0 +1,62 @@ +--- +title: GeolocationPosition +slug: Web/API/GeolocationPosition +tags: + - API + - Geolocation API + - GeolocationPosition + - Interface + - Secure context + - TopicStub +translation_of: Web/API/GeolocationPosition +--- +
{{securecontext_header}}{{APIRef("Geolocation API")}}
+ +

L'interface GeolocationPosition représente la position de l'appareil concerné à un instant donné. La position, représentée par un objet {{domxref("GeolocationCoordinates")}}, comprend la position 2D de l'appareil, sur un sphéroïde représentant la Terre, mais aussi son altitude et sa vitesse.

+ +

Propriétés

+ +

L'interface GeolocationPosition n'hérite d'aucune propriété.

+ +
+
{{domxref("GeolocationPosition.coords")}} {{readonlyInline}} {{securecontext_inline}}
+
Renvoie un objet {{domxref("GeolocationCoordinates")}} définissant l'emplacement actuel.
+
{{domxref("GeolocationPosition.timestamp")}} {{readonlyInline}} {{securecontext_inline}}
+
Renvoie un {{domxref("DOMTimeStamp")}} représentant l'heure à laquelle l'emplacement a été récupéré.
+
+ +

Méthodes

+ +

L'interface GeolocationPosition n'implémente ni n'hérite d'aucune méthode.

+ +

Spécifications

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Geolocation', '#position_interface', 'GeolocationPosition')}}{{Spec2('Geolocation')}}Spécification initale.
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.GeolocationPosition")}}

+ +

Voir aussi

+ + diff --git a/files/fr/web/api/geolocationposition/timestamp/index.html b/files/fr/web/api/geolocationposition/timestamp/index.html new file mode 100644 index 0000000000..460fb29213 --- /dev/null +++ b/files/fr/web/api/geolocationposition/timestamp/index.html @@ -0,0 +1,49 @@ +--- +title: GeolocationPosition.timestamp +slug: Web/API/GeolocationPosition/timestamp +translation_of: Web/API/GeolocationPosition/timestamp +--- +
{{securecontext_header}}{{APIRef("Geolocation API")}}
+ +

La propriété en lecture seule GeolocationPosition.timestamp retourne un objet {{domxref("DOMTimeStamp")}} représentant la date et l'heure de la création de l'objet {{domxref("GeolocationPosition")}} auquel il appartient. La précision est de l'ordre de la milliseconde.

+ +

Syntaxe

+ +
var timestamp = geolocationPositionInstance.timestamp
+
+ +

Valeur

+ +

Un objet {{domxref("DOMTimeStamp")}}.

+ +

Spécification

+ + + + + + + + + + + + + + + + +
SpécificationStatutCommentaire
{{SpecName('Geolocation', '#dom-geolocationposition-timestamp', 'GeolocationPosition.timestamp')}}{{Spec2('Geolocation')}}Définition initiale.
+ +

Compatibilité des navigateurs

+ + + +

{{Compat("api.GeolocationPosition.timestamp")}}

+ +

Voir aussi

+ + -- cgit v1.2.3-54-g00ecf