A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://Tarektouati.github.io/vue-use-web/functions/geolocation.html below:

Website Navigation


Geolocation | useWeb

# Geolocation

The Geolocation API allows the user to provide their location to web applications if they so desire. For privacy reasons, the user is asked for permission to report location information.

# State

The useGeolocation function exposes the following reactive state:

State Type Description coords Coordinates information about the position retrieved like the latitude and longitude locatedAt Date The time of the last geolocation call error string An error message in case geolocation API fails. # Config

useGeolocation function takes PositionOptions object as an optional parameter.

# Example

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4