微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何仅在英语中获得HERE反向地址解析API响应?

如何解决如何仅在英语中获得HERE反向地址解析API响应?

我正在使用Here map反向地理编码api服务获取用户的地址,当前城市名称和国家名称

https://reverse.geocoder.ls.hereapi.com/6.2/reversegeocode.json?prox=25.0841817%2C55.140879&mode=retrieveAddresses&maxresults=1&gen=9&apiKey=XXXXXXXXXXXXXXXXX&lang=en-US

我只想用英语回答,但是当我在url上方打上我要以搜索位置国家/地区语言获取地址时,我只想用英语回答所有问题。

返回Json响应:

{
  "Response": {
    "MetaInfo": {
      "Timestamp": "2020-11-12T08:17:37.068+0000","NextPageinformation": "2"
    },"View": [
      {
        "_type": "SearchResultsViewType","ViewId": 0,"Result": [
          {
            "Relevance": 1,"distance": -32.1,"Direction": 43.7,"MatchLevel": "district","MatchQuality": {
              "Country": 1,"County": 1,"City": 1,"district": 1
            },"Location": {
              "LocationId": "NT_f5fshtjWjcd5HaTtlbrNsB","LocationType": "area","displayPosition": {
                "Latitude": 25.09041,"Longitude": 55.14745
              },"MapView": {
                "TopLeft": {
                  "Latitude": 25.26523,"Longitude": 55.11917
                },"Bottomright": {
                  "Latitude": 25.06368,"Longitude": 55.34842
                }
              },"Address": {
                "Label": "مرسى دبي,دبي,الإمارات العربية المتحدة","Country": "ARE","County": "دبي","City": "دبي","district": "مرسى دبي","AdditionalData": [
                  {
                    "value": "الإمارات العربية المتحدة","key": "CountryName"
                  },{
                    "value": "دبي","key": "CountyName"
                  }
                ]
              },"MapReference": {
                "ReferenceId": "1173016724","MapId": "VMAM20136","MapVersion": "Q1/2020","MapReleaseDate": "2020-10-22","SideOfStreet": "neither","CountryId": "21397206","CountyId": "21399077","CityId": "21399080","districtId": "21457153"
              }
            }
          }
        ]
      }
    ]
  }
}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。