--- title: Coordinates.altitudeAccuracy slug: Web/API/GeolocationCoordinates/altitudeAccuracy translation_of: Web/API/GeolocationCoordinates/altitudeAccuracy ---
{{APIRef("Geolocation API")}}

Coordinates.altitudeAccuracy 是個唯讀的正複數用來代表高度的精準度,單位為公尺,並有 95% 可靠度。如果裝置無法提供這個值則回傳 null。

語法

altAcc = coordinates.altitudeAccuracy

規格

Specification Status Comment
{{SpecName('Geolocation', '#altitudeaccuracy', 'Coordinates.altitudeAccuracy')}} {{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}}

請參考