2011-06-13 44 views
1

當我張貼我的查詢在谷歌地圖API得到一個位置,我得到如下回應:我如何獲得英語JSON響應只使用谷歌地圖API

descriptionHtml is 1 つ目の角を左に曲がって、<b>central road</b>に入る<div class="google_note"> <b landmarkid="0x390cfcd4e13e8025:0x46d4d92a3bf0456c" class="dir-landmark">Central Revenue Bldg</b>を通過する<div class="dirseg-sub">(300&nbsp;m 先、左手)</div>

但我想在英語整個響應唯一

任何人都可以建議我怎麼能做到這一點?

我使用的Objective-C的谷歌地圖API這裏

//更新...

我發現,我必須要改變的東西在這裏:

locale = [[NSLocale alloc] initWithLocaleIdentifier:@"ja_JP"];

任何人都可以告訴我,我應該在這裏做什麼?

+0

你爲什麼要使用'區域設置= [[NSLocale頁頭] initWithLocaleIdentifier:@ 「Ja_JP表示」];'? – Jhaliya 2011-06-13 10:31:55

+0

@jaliya ......因爲有人告訴我使用谷歌API和根據比使用谷歌API :( – 2011-06-13 10:39:18

回答

1

入住這

Coordinate (Lat/Lon) to Address (City,Zip, etc) - ReverseGeoCoordinate

更改下面的語句

locale = [[NSLocale alloc] initWithLocaleIdentifier:@"ja_JP"]; 

locale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"]; 

More

+0

@jhaliya其他that..no選擇使用JSON數據...檢查更新的question..thanks – 2011-06-13 10:29:07

+0

是,,,工作就像一個魅力......謝謝:) – 2011-06-13 10:40:12