I want a feature in weweb where the app captures the current location of the user. Basically there are users visiting certain locations and it has to be verified that the user has actually visited the location. So we need to get the user’s location when the user fills a form about the visit and then there should be a logic which compares the captured location to the location of the visit and if the user’s location is within 50 meters of the location then takes it as visit verified.
Is this possible to do in weweb? @Joyce please guide
When you enable the PWA plugin, you will then see the Get User Location action in the workflow options. You can then compare the lat/long to the known coordinates.
fwiw, you should research a couple of related topics:
privacy laws in the geographic areas you intend to have users and required disclosures with respect to location tracking
variability in gps accuracy depending on device, internet connection, and triggering code. An iPad using wifi will use the internet connection based location which can be a mile off from actual. A phone using cell connection can have anywhere from 5m (15ft) to 50m accuracy depending on a number of factors. Accuracy is a parameter the device outputs, so you can build logic around that.