[英]How to get timezone detail by zip code, from Geocoding and Search API v7 of here-mep?
I was trying to fetch the city, state, county, lat, lng and timezone details of a particular zip by calling https://geocode.search.hereapi.com/v1//geocode
with parameters in=countryCode:USA&qq=postalCode=75080&apiKey=myapikey
the result i got is我试图通过使用参数
in=countryCode:USA&qq=postalCode=75080&apiKey=myapikey
调用https://geocode.search.hereapi.com/v1//geocode
来获取特定邮编的城市、州、县、纬度、lng 和时区详细信息in=countryCode:USA&qq=postalCode=75080&apiKey=myapikey
我得到的结果是
{
"items": [
{
"title": "75080, TX, United States",
"id": "here:cm:namedplace:22182383",
"resultType": "locality",
"localityType": "postalCode",
"address": {
"label": "75080, TX, United States",
"countryCode": "USA",
"countryName": "United States",
"state": "Texas",
"postalCode": "75080"
},
"position": {
"lat": 32.94534,
"lng": -96.76162
},
"mapView": {
"west": -96.7075,
"south": 32.93728,
"east": -96.76902,
"north": 33.0038
},
"scoring": {
"queryScore": 1.0,
"fieldScore": {
"postalCode": 1.0
}
}
}
]
}
I was able to fetch the timezone details by calling the old api https://geocoder.ls.hereapi.com/search/6.2/geocode.json
with parameters locationattributes=adminInfo,timeZone
is there a way to get the same in new api also ?我能够通过使用参数
locationattributes=adminInfo,timeZone
调用旧 API https://geocoder.ls.hereapi.com/search/6.2/geocode.json
来获取时区详细信息,有没有办法在新 API 中获得相同的信息还 ? or what should i do to get the timezone details ?或者我应该怎么做才能获得时区详细信息?
you can still use the older API as it is in maintenance phase but not completely blocked.您仍然可以使用旧的 API,因为它处于维护阶段但并未完全被阻止。
https://geocoder.ls.hereapi.com/6.2/geocode.json?locationattributes=adminInfo,timeZone&apiKey={}E&countyCode=USA&postalcode=75080
https://developer.here.com/documentation/geocoder/dev_guide/topics/resource-geocode.html https://developer.here.com/documentation/geocoder/dev_guide/topics/resource-geocode.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.