C
C#2mo 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
Angius2mo 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
Jimmacle2mo ago
not possible on all devices
Angius
Angius2mo 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
Jimmacle2mo ago
yeah, you'll need fallbacks also people may want things delivered to a location other than their current one
jcotton42
jcotton422mo ago
Also apartment or dorm numbers exist.
heloo
helooOP2mo 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
jcotton422mo ago
Why? That seems way worse than just giving your address.
heloo
helooOP2mo 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
Cattywampus2mo 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?