Position
Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
L'interfaccia Position
rappresenta la posizione di un particolare dispositivo in un preciso istante. La posizione, rappresentata da un oggetto Coordinates
, comprende la posizione in 2D del dispositivo, su una sfera che rappresenta la Terra, l'altitudine e la velocità.
Proprietà
L'interfaccia Position
non estende alcuna proprietà.
Position.coords
Read only Secure context- Ritorna un oggetto
Coordinates
che rappresenta la posizione attuale. Position.timestamp
Read only Secure context- Ritorna
DOMTimeStamp
che rappresenta l'orario in cui è stata calcolata la posizione.
Metodi
L'interaccia Position
non va implementata e non estende alcun metodo.
Specifiche
Specifica | Stato | Commento |
---|---|---|
Geolocation API The definition of 'Position' in that specification. |
Recommendation | Specifica iniziale. |
Compatibilità dei browser
We're converting our compatibility data into a machine-readable JSON format.
This compatibility table still uses the old format,
because we haven't yet converted the data it contains.
Find out how you can help!
Funzionalità | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Supporto base | 5 | (Yes) | 3.5 (1.9.1) | 9 | 10.60 Rimosso nella 15.0 Reintrodotto nella 16.0 |
5 |
Secure context-only | 47 | ? | 55 (55) | No support | (Yes) | (Yes) |
Funzionalità | Android Webview | Chrome for Android | Edge | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
Supporto base | ? | ? | (Yes) | 4.0 (4) | ? | 10.60 | ? |
Secure context-only | No support | 47 | ? | 55 (55) | No support | (Yes) | (Yes) |
Vedi anche
- Uso della geolocalizzazione
- L'interfaccia
Geolocation
utilizzata.