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
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.
not possible on all devices
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
yeah, you'll need fallbacks
also people may want things delivered to a location other than their current one
Also apartment or dorm numbers exist.
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
Why?
That seems way worse than just giving your address.
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
if it's for mobiles, ig you can? but then that requires a dedicated app and ask for location permission