开发者

Are the W3C geolocation API accuracy parameter in diameter or radius of your position?

开发者 https://www.devze.com 2023-01-17 08:09 出处:网络
Maybe i got my head around this wrong, after stfw i could not find any info on this. When the geolocation api returns your position with latitute开发者_运维百科, longitude and accuracy (p.coords.accur

Maybe i got my head around this wrong, after stfw i could not find any info on this. When the geolocation api returns your position with latitute开发者_运维百科, longitude and accuracy (p.coords.accuracy), does the accuracy parameter return diameter or radius of your position? For instance, if accuracy of my position is 24 meters, does that mean i could be standing anywhere within a radius of 24 meters of my position, or within 12 meters radius of my position (that would give a 24 meters diameter, me being in the middle of the circle of accuracy)

Any help appreciated!


It would be the radius. So if the accuracy is 24, then the true position is within 24 meters, which would mean it would lie within a circle with radius 24 around the coordinate.

0

精彩评论

暂无评论...
验证码 换一张
取 消