如何使用YQL获取一个国家的口语?
我的方法是:
select lang from geo.countries where name ="Italy"但我总是把英语作为语言:
{
"query": {
"count": 1,
"created": "2015-12-27T23:43:58Z",
"lang": "en-US",
"diagnostics": {
"publiclyCallable": "true",
"url": {
"execution-start-time": "28",
"execution-stop-time": "98",
"execution-time": "70",
"content": "http://wws.geotech.yahooapis.com/v1/countries;start=0;count=1000"
},
"user-time": "103",
"service-time": "70",
"build-version": "0.2.369"
},
"results": {
"place": {
"lang": "en-US" // wrong language!
}
}
}
}在这里,您可以使用YQL控制台:https://developer.yahoo.com/yql/console/#h=select+lang+from+geo.countries+where+name+%3D%22Italy%22
发布于 2015-12-29 02:42:07
根据documentation的说法,lang不是口语。
header部分中的用于标识请求响应中的语言。
在results中,它用于标识使用哪种语言来描述地点的本地化名称。
我担心GeoPlanet应用程序接口不会返回的信息,如口语,货币等。它的重点是地理位置(坐标,州,县,等等),并提供了几种语言的地名。
https://stackoverflow.com/questions/34486099
复制相似问题