Code Monkey home page Code Monkey logo

Comments (5)

woju avatar woju commented on July 27, 2024 1

Looks promising.

from hud.

woju avatar woju commented on July 27, 2024

Probably not. The big advantage of the current state is that there is absolutely nothing to configure. There are about 4 countries which use some variation of natural units (those are Liberia, Myanmar, UK and US, and some islands, most of them dependent territories), and big majority of the world drives in km/h.
https://en.wikipedia.org/wiki/Miles_per_hour

I'm sorry, but that's the compromise I'd like to take. I consider the "no config" rule a guiding principle, which has major safety implication, since it discourages fiddling with the phone while driving. The phone is often at the border of arm's reach, and trying to change something is dangerous.

Saying that, I admit that the unit system is something that user would probably select once in lifetime. It may be possible to derive the unit from some system setting. I'm not aware of such setting in Android. I rule out the language, since people may have set different language than their country's (or country they currently are traveling to). I for one have set en_GB, because I like my devices to be in English to be able to google settings and errors.

from hud.

alanthehat avatar alanthehat commented on July 27, 2024

I can see that being correct in 201 of 205 countries would suggest that no setting is needed, but UK & USA between them are probably a very significant proportion of the Android market.
Can I request a screen as the app starts with this setting on? This screen to timeout in maybe 10 seconds if there's no interaction?

from hud.

alanthehat avatar alanthehat commented on July 27, 2024

I have no idea how large or awkward it is to access, but Android has a passive location service from which it should be possible to derive the current country.

from hud.

HolgerJeromin avatar HolgerJeromin commented on July 27, 2024

https://github.com/westnordost/countryboundaries is an android library to find offline the country from coords.

from hud.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.