我有一个JSON:http://maps.googleapis.com/maps/api/geocode/json ? latlng = 49,19& _sensor = false
我只需要获得国家的short_name.(对于这个例子'SK').因此,我得到属性"types"包含["country","political"]的short_name.
我有...
data.results[0].address_components
Run Code Online (Sandbox Code Playgroud)
谢谢.