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

API返回英文字段 | API Returns English Fields #61

Closed
BlankerL opened this issue Feb 15, 2020 · 4 comments
Closed

API返回英文字段 | API Returns English Fields #61

BlankerL opened this issue Feb 15, 2020 · 4 comments
Labels
announcement Announcement

Comments

@BlankerL
Copy link
Owner

BlankerL commented Feb 15, 2020

感谢大家对项目的支持。

目前API/nCoV/api/area已经能够返回英文字段,包括大洲名continentEnglishName、国家名countryEnglishName、省份名provinceEnglishName、城市名cityEnglishName

具体内容已经在API文档内注明。

所有英文城市名均手动摘录自维基百科对应城市页面,为城市名全称,确保能够被大多数人接受和理解。

所有历史数据也已经处理完成。

另外,由于返回字段的增加,每次请求返回数据量势必增加,因此网站每秒能够响应的请求数量又将减少,请大家不要再频繁请求API。


Thank you for your support.

Currently, API is able to return English fields, the attribute names are the name of the continent continentEnglishName, the name of the country countryEnglishName, the name of the province provinceEnglishName and the name of the citycityEnglishName.

The detailed information can be found in API documentation.

All the English names of cities are manually collected from Wikipedia and are full names of the cities, which I suppose will help most of the people understand them.

Historical data also contain the English version of city names now.

Furthermore, due to the increase in the returned fields, the amount of data responded per request will inevitably increase, so the number of requests that the website can respond to per second will decrease again. Please do not call the API frequently.

@BlankerL BlankerL added the announcement Announcement label Feb 15, 2020
@BlankerL BlankerL pinned this issue Feb 15, 2020
@BlankerL BlankerL changed the title API支持返回英文城市名 | API returns English City Names API返回英文字段 | API returns English Attributes Feb 15, 2020
@BlankerL BlankerL changed the title API返回英文字段 | API returns English Attributes API返回英文字段 | API returns English Fields Feb 15, 2020
@BlankerL BlankerL changed the title API返回英文字段 | API returns English Fields API返回英文字段 | API Returns English Fields Feb 15, 2020
@Dobby233Liu
Copy link

Dobby233Liu commented Feb 15, 2020

I suppose I can fix your Engrish:

Currently, the /nCoV/api/area API is able to return fields translated to English, including name of the continent as continentEnglishName, name of the country as countryEnglishName, name of the province as provinceEnglishName and name of the city as cityEnglishName.
...
Now historical data contains translated fields, too.

The title is changed accordingly:

API returns translated fields

@BlankerL
Copy link
Owner Author

I suppose I can fix your Engrish:

Currently, the /nCoV/api/area API is able to return fields translated to English, including name of the continent as continentEnglishName, name of the country as countryEnglishName, name of the province as provinceEnglishName and name of the city as cityEnglishName.
...
Now historical data contains translated fields, too.

The title is changed accordingly:

API returns translated fields

Thank you for your advice, I switched to your version for seconds and switch back because I think all the English version of the names of cities is published on Wikipedia. I do not do the translating job, and the translation might be globally-accepted.

@BlankerL BlankerL unpinned this issue Mar 16, 2020
@chffby
Copy link

chffby commented May 22, 2020

请问新闻接口是不是不稳定呢,两天没能用了

@BlankerL
Copy link
Owner Author

请问新闻接口是不是不稳定呢,两天没能用了

已经恢复。

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

No branches or pull requests

3 participants