C
C#4w ago
heloo

How can I get users location with in 10 meters

Iam trying to make a delivery website and I want to get users location with in 10 meters at most how can I achieve that ?
9 Replies
Angius
Angius4w ago
MDN Web Docs
Geolocation API - Web APIs | MDN
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.
Jimmacle
Jimmacle4w ago
not possible on all devices
Angius
Angius4w ago
Ideally, get rough location via the geolocation API, and let the user specify a precise location on a map Or just let them enter their address
Jimmacle
Jimmacle4w ago
yeah, you'll need fallbacks also people may want things delivered to a location other than their current one
jcotton42
jcotton424w ago
Also apartment or dorm numbers exist.
heloo
helooOP4w ago
Thansk for the help the way I had it in mind is the driver gets close to that location calls the client and gives him the details
jcotton42
jcotton424w ago
Why? That seems way worse than just giving your address.
heloo
helooOP4w ago
Yeah I'll try to fill the form with their location while giving them the ability to edit it So I get the best of both worlds I'll leave the phone number filled incase of issues but yeah the user should defo give the information
Cattywampus
Cattywampus4w ago
if it's for mobiles, ig you can? but then that requires a dedicated app and ask for location permission

Did you find this page helpful?