Algolia interview question

Find a users location using navigator.geolocation.getCurrentPosition()