【问题标题】:Google Geocode returns local language even though I request English即使我要求英语,Google 地理编码也会返回本地语言
【发布时间】:2018-02-13 23:08:24
【问题描述】:

我正在尝试使用地理编码来解析我拥有的地址。我的地址是..

Soi 72,宋卡府,泰国

我正在提出以下请求:

https://maps.googleapis.com/maps/api/geocode/xml?address=Soi%C2%A072%2C%C2%A0Songkhla%2C%C2%A0Thailand%20&sensor=false&language=en

(当然是用我的钥匙,但我把它放在这里了。)

并获得州和国家/地区的以下结果:

<address_component>
    <long_name>Amphoe Hat Yai</long_name>
    <short_name>อ.หาดใหญ่</short_name>
    <type>administrative_area_level_2</type>
    <type>political</type>
</address_component>
<address_component>
    <long_name>Chang Wat Songkhla</long_name>
    <short_name>จ.สงขลา</short_name>
    <type>administrative_area_level_1</type>
    <type>political</type>
</address_component>
<address_component>
    <long_name>Thailand</long_name>
    <short_name>TH</short_name>
    <type>country</type>
    <type>political</type>
</address_component>

为什么当地语言的短名是泰语,而长名是英文?我如何强制所有内容都变成英语?

【问题讨论】:

    标签: google-api geocode


    【解决方案1】:

    试试http://geocode.xyz/Soi%2072,%20Songkhla,%20Thailand

    • 泰国 x,y z: 7.05530,100.51575 ??

    • Songkhla, TH Thailand » 90110 » 信心得分:0.80 90110 宋卡府,TH

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-02-11
      • 1970-01-01
      • 1970-01-01
      • 2023-03-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-04-08
      相关资源
      最近更新 更多