←back to thread

428 points coronadisaster | 1 comments | | HN request time: 0.212s | source
Show context
flanbiscuit ◴[] No.23677581[source]
> Magnetometer API - Allows websites to access data about the local magnetic field around a user, as detected by the device's primary magnetometer sensor.

I have never heard of this API, what's a use case for it?

replies(2): >>23677641 #>>23677654 #
1. alexdw_mgzi ◴[] No.23677654[source]
If you had access to the magnetometer, you could make a navigation compass. Or, you could animate a map to rotate as the phone rotates. It might be good for implementing a GeoCaching helper app as a website.