Vue sensor hook that tracks user's geographic location. This hook accepts position options.
<template>
<pre>
{{JSON.stringify(state, null, 2)}}
</pre
>
</template>
<script>
import { useGeolocation } from "vue-next-use";
export default {
components: {},
props: {},
setup() {
const state = useGeolocation();
return {
state,
};
},
};
</script>
useGeolocation(options: PositionOptions)