-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Location names in multiple countries #56
Comments
The fix will be done in two steps:
First step
Remarks:
Second stepGood occasion to experiment with: |
Excellent start!
If it's just the two-letter Country Codes I guess the complication would be multi-language support. Perhaps only show the country code in the scenario where the user did not manually enter a country? |
This looks like a useful resource... country codes with countries listed in different languages: |
Work is ongoing on this topic but unfortunately don't expect to much from Geocoding API... $ curl "https://api.openweathermap.org/geo/1.0/direct?q=Saint,France&lang=fr&appid=${OWM_API_KEY}"
[{"name":"Saint","local_names":{"hi":"सैंत"},"lat":27.370281,"lon":77.3582553,"country":"IN","state":"Rajasthan"}] I am not even able to find a query with multiple answers... Oh I see, one has to add the $ curl "https://api.openweathermap.org/geo/1.0/direct?q=birmingham&limit=5&lang=fr&appid=${OWM_API_KEY}" | jq -r 'length'
5 |
Current implementation doesn't try to display local names, nor transform country codes into full country names. Let see whether we need those refinements; It's not clear to me. https://github.com/orontee/taranis/releases/tag/v1.2.0-rc5 Small bugs:
|
Works nicely here. Surprising how many location names appear in other parts of the world! 😃 Just having the country code is likely sufficient, no? Most people are used to seeing this from webforms and the like. Couldn't hurt to have the longitude and latitude in the location list. |
Thanks for the feedback!
Yes. And I am not sure the Geocoding API is that precise and of good quality...
Right.
Yes, I'll make list items spread over two lines, the second being dedicated to longitude and latitude. |
Great work! It's actually much quicker now to simply type just the town/city and then select the exact location from the drop-down. No having type a comma and country etc. And having the country code visible gives me confidence that the report is for the exact location I need. |
Yes, the user experience has improved a lot! I'll will release this soon. Other awaiting issues are stucked and I suspect they won't progress in a short delay. https://github.com/orontee/taranis/releases/tag/untagged-4b2ea7b438c0120ebc5d Let's wait for few days to see whether day to day use are ok, and I'll post about that release on mobileread.com. |
You're right. Most recent item in history is used (Toulouse if history is
empty).
The config file should be created after a change of unit for example.
Matthias
Le mar. 10 oct. 2023, 06:35, Swanny ***@***.***> a écrit :
… Just wanted to check... taranis.cfg is no longer created. Does Tarnis now
use the first entry in the .json file as the location to load on app launch?
—
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPYMIWBVDPF4LETMUGFKN3X6TGBRAVCNFSM6AAAAAA5UEUGF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJUGM2TINJXHE>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Or if you change view to 8-day I presume? |
Yes. But this should change in the future because it's more related to the
application state than a configuration...
Matthias
Le mar. 10 oct. 2023, 07:18, Swanny ***@***.***> a écrit :
… Or if you change view to 8-day I presume?
—
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPYMIWQ5XB6EES5TG7B6FTX6TLBXAVCNFSM6AAAAAA5UEUGF6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJUGQYDEMJSGI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
Less common scenario to consider...
Birmingham for example exists in the UK and the US. If you search simply for "Birmingham" without specifying the country, a weather report is generated but it's not immediately clear for which country.
Could the location name written to the screen be extracted from the OpenWeather data payload (with country included) rather than writing the user input to the screen, so the exact location/country is clear?
The text was updated successfully, but these errors were encountered: