如何在HereMaps的位置详细信息API中获取Alpha2国家/地区代码

时间:2020-07-23 13:47:37

标签: here-maps-rest heremaps

我正在点击此处映射详细信息api端点 https://geocoder.ls.hereapi.com/6.2/geocode.json获取位置详细信息。我需要alpha2国家/地区代码作为响应,但我正在获取alpha3。有什么方法可以获取alpha2地址吗?

{"relevance"=>0.0, "matchLevel"=>"country", "location"=>{"locationId"=>"NT_sCRfuPPAnURShDKlGtXPTB", "locationType"=>"area", "displayPosition"=>{"latitude"=>52.51605, "longitude"=>13.37691}, "mapView"=>{"topLeft"=>{"latitude"=>55.05863, "longitude"=>5.86624}, "bottomRight"=>{"latitude"=>47.27021, "longitude"=>15.04205}}, "address"=>{"label"=>"Germany", "country"=>"DEU", "additionalData"=>[{"value"=>"Germany", "key"=>"CountryName"}]}

0 个答案:

没有答案