Skip to content
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

Show State in US City Names #142

Open
amcginni opened this issue Mar 16, 2024 · 1 comment
Open

Show State in US City Names #142

amcginni opened this issue Mar 16, 2024 · 1 comment

Comments

@amcginni
Copy link

It is common for city names in the US to be re-used across multiple states. Currently, meto-qt does not show the state name or abbreviation of US cities. This has users needing to pick the correct lat/lon values from a list of cities of the same name. For example, apparently there are 5 cities named Syracuse in the United States:
image

Syracuse, New York is what I am after in this example, but a search for "Syracuse, NY" returns no results, and "Syracuse, New York" simply returns the top five cities in the world with names like Syracuse, including two in Italy.

What is proposed here is to display the two-digit state abbreviation in the name of any US city, so the above example of the Find City dialog might look something like this:
screen

I see that the Open Weather Map website also shows only the city name and country, so it might not be as easy as simply displaying displaying some value we're already getting back. I see too that the Open Weather Map API supports queries by lat/lon. Maybe this could be accomplished by querying some third-party API like GeoNames for the place names and feeding the lat/lon into Open Weather Map?

@dglent
Copy link
Owner

dglent commented Mar 17, 2024

I agree it is very usefull
However i don't get the State with the actual call. It needs a second call here : https://openweathermap.org/api/geocoding-api
to get the State by city name and coordinates.

The actual call provides the city id which is not provided from the geocoding api.

Let me see how to combine both.
Thanks for reporting this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants