5/ Assuming the user gives permission π, the browser then receives a longitude and latitude, and potentially other info like altitude.
Important: depending on the tech used these coords may be more or less accurate ππ The accuracy value is a number in meters that the actual position may vary from the reported position.
https://developer.mozilla.org/en-US/docs/Web/API/GeolocationCoordinates
Note: browsers also allow users to turn off location prompting.
6/ ok, so now we have geographic coordinates!
We use them as inputs into reverse geocoding, which is turning coordinates into location human-readable location info.
You may recall our #geoeducation thread about the nuances of reverse geocoding https://en.osm.town/@opencage/111743653275940467