←back to thread

428 points coronadisaster | 3 comments | | HN request time: 0.52s | source
1. 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 #
2. Sharlin ◴[] No.23677641[source]
The same as with native apps, sensing the device's orientation. For AR, navigation, what have you.
3. 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.