@tomhughes Thank you for the comment. I agree with you about the complexity of 
the code, but there are several reasons for both methods.

Changing location name manually solves cases like:
1. Disputed areas - someone living in the area A may not want to show that area 
is part of country B and not C.
2. Several countries - someone who has citizenship of several countries may 
want to set his location name to something like "Georgia & 
Germany"
3. Choosing privacy - someone may want to explicitly mention "Tbilisi, 
Georgia", but someone may want to just show the country and keep other 
details private

Meanwhile, changing location with Nominatim autofill introduces:
1. Better UX - if user is okay with showing only home country, autofill avoids 
extra typing from user
2. Standardization - default value introduces default standard for user to 
easily perceive what kind of and what detalization of information is 
recommended for the field
3. Motivation to fill - when user sees a warning about the field that it 
doesn't match home location, it subconsciously motivates him to click the 
autofill button (just one easy click) and increases use of the feature

By choosing only one solution we sacrifice either functionality or better UX.

Currently, autofill suggests name of the country and warning is only shown if 
manually typed location doesn't contain country name. Therefore, 
"Germany & Georgia", "Tbilisi, Georgia", 
"Georgia" won't show any autofill warning if user has home 
location set in Georgia.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5302#issuecomment-2464688461
You are receiving this because you are subscribed to this thread.

Message ID: 
<openstreetmap/openstreetmap-website/pull/5302/c2464688...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to