Being aware that HTML geolocation API does not work on every browser without using Wi-Fi, I'm trying to use an alternative more accurate to present nearest items from the user location.
I'd expect the user to enter a "Location reference", in a lot of cases, his address and then expect him to select the distance he wants.
Of course, this would be autocomplete so that user does not have to type the entire exact address; avoiding typo etc..
Basically, this would be represented as follows:
My question is: with this solution, how could I enforce the fact that user MUST select his current address before selecting a more restricting distance than
everywhere through radio button?
Indeed, it would make no sense to have this state:
Should I hide ALL the radio buttons until a right address has been set?
Should I enable only
everywhere as long as no address has been set?
In both cases, when a right address is set, a little popup or animation would warn the user that it could now uses the radio buttons to select his desired distance.
(Technically, it's possible to determinate whether an address exists, so that wouldn't be an issue to expect a "right" address).
Or should I completely change the nature of the solution?
Note that the set current address could be saved so that the user does not have to type it every time it uses the app, as long as the address doesn't need to be changed.