Position.coords
Position.coords
是一個 Coordinates
物件的唯讀屬性,表示地理的特性:回傳的物件中包括位置、地球經緯度、海拔高度和速度,同時也包含著這些值的精準度訊息。
語法
coord = position.coords
規格
Specification |
---|
Geolocation API # coords-attribute |
瀏覽器的相容性
BCD tables only load in the browser
Position.coords
是一個 Coordinates
物件的唯讀屬性,表示地理的特性:回傳的物件中包括位置、地球經緯度、海拔高度和速度,同時也包含著這些值的精準度訊息。
coord = position.coords
Specification |
---|
Geolocation API # coords-attribute |
BCD tables only load in the browser