我确实需要API(最好是RESTful),以便为学术项目找到所拨号码的时区(例如 +44 xxxvvvyyyy(UK)= GMT等)。我以为可能有某个API可以阻止我编写服务并让它自己可用!我很清楚服务应针对美国和俄罗斯等多区域国家应解决的问题。
任何帮助都会提前得到赞赏。
答案 0 :(得分:0)
特别是,你在寻找什么: https://restcountries.eu/rest/v1/callingcode/
澳大利亚: https://restcountries.eu/rest/v1/callingcode/61
[
{
"name": "Australia",
"capital": "Canberra",
"altSpellings": [
"AU"
],
"relevance": "1.5",
"region": "Oceania",
"subregion": "Australia and New Zealand",
"translations": {
"de": "Australien",
"es": "Australia",
"fr": "Australie",
"ja": "オーストラリア",
"it": "Australia"
},
"population": 23868800,
"latlng": [
-27,
133
],
"demonym": "Australian",
"area": 7692024,
"gini": 30.5,
"timezones": [
"UTC+05:00",
"UTC+06:30",
"UTC+07:00",
"UTC+08:00",
"UTC+09:30",
"UTC+10:00",
"UTC+10:30",
"UTC+11:30"
]
...