Open giovannicoppola opened 3 years ago
I agree with your concerns, but on the other hand, sometimes you want to be able to specify the location name in your (still correct) spelling. For example, you could want to see it as Nürnberg
and not Nuremberg
.
I think we should add a special one-line format character, that will display the nearest area, or resolved location name,
instead of the location that was specified.
The one-line output formats that include the location currently return the user input as location name, and (if there is no match) data from either Oymyakon (after
curl
request) or Ban Not, Vietnam (JSON output).This can be confusing if the user mistypes the city name, e.g.
It would be great to return the location from the data itself, which if I understand correctly is
['nearest_area'][0]['areaName'][0]['value']
in the JSON output.