2013-10-14 33 views
0

我正在使用yahoo geocoding YQL獲取地點列表的lan/lat。這工作,但結果總是以英語重新調整。但是,需要使用當地語言的結果(de-de用於德國的地區,fr-fr用於法國等)。如何在我的結果中更改YQL響應語言?

這裏是我的查詢:

http://query.yahooapis.com/v1/public/yql?q=select+%2A+from+geo.placefinder+where+city%3D%27Dresden%27%20and%20country%20=%20%22Germany%22

Idealy它應該返回「五金」而不是「德國」這裏不是「薩克森「薩克森」。我試圖按照http://developer.yahoo.com/social/rest_api_guide/web-services-http-responses.html上的建議向查詢中添加'lang',但這並沒有改變任何內容。

有沒有辦法切換響應語言?即使是另一個支持這個功能的web服務也沒關係,我只需要它一次〜2000個位置。

回答

1

您在YQL調用中必須嘗試lang=de-DE。實際的電話將是
select * from geo.placefinder where city='Dresden' and country = "Germany" and lang="de"

在yql控制檯here嘗試一下。要詳細瞭解支持哪些語言環境,請閱讀this