开发者

How do I to get JSON response in English only using Google Maps API

开发者 https://www.devze.com 2023-03-12 05:55 出处:网络
When I am posting my query for getting a location in Google Maps API I am getting the follow response:

When I am posting my query for getting a location in Google Maps API I am getting the follow response:

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>

But I want the whole response in English only

Can anyone suggest how I can do this?

I am using Objective-C for Google Maps Api here

//Update...

I found that I have to change something here:

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

开发者_Python百科Can anyone tell me what should I do here?


Check this

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

Change the below statement

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

to

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

More

0

精彩评论

暂无评论...
验证码 换一张
取 消