--- title: Coordinates slug: Web/API/GeolocationCoordinates translation_of: Web/API/GeolocationCoordinates ---
Coordinates 這個介面用來存取裝置的經緯度,速度以及這些數值的準確度。
Coordinates 這個介面沒有繼承任何屬性。
NaN。如果無法提供這個值則回傳 null。Coordinates 這個介面,沒有實作也沒有繼承自任何的方法。
| Specification | Status | Comment |
|---|---|---|
| {{SpecName('Geolocation', '#coordinates', 'Coordinates')}} | {{Spec2('Geolocation')}} | Initial specification. |
{{ CompatibilityTable() }}
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 5 | {{CompatGeckoDesktop("1.9.1")}} | 9 | 10.60 {{CompatNo}} 15.0 16.0 |
5 |
| Feature | Android | Chrome for Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|---|
| Basic support | {{CompatUnknown()}} | {{CompatUnknown()}} | {{CompatGeckoMobile("4")}} | {{CompatUnknown()}} | 10.60 | {{CompatUnknown()}} |