简体   繁体   English

如何从here-mep的地理编码和搜索API v7通过邮政编码获取时区详细信息?

[英]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.

相关问题 HERE 地图地理编码和搜索中的附加数据 API v7 Rest - additionaldata in HERE Maps Geocoding and Search API v7 Rest 使用 HERE 地理编码和搜索的街道交叉口坐标 API v7 - Street Intersection Coordinates with HERE Geocoding and Search API v7 如何在 HERE Maps Geocoding and Search API v7 中为反向地理编码端点指定搜索半径? - How to specify a search radius for Reverse Geocode endpoint in HERE Maps Geocoding and Search API v7? 地理编码和搜索 API v7 - Geocoding and Search API v7 从“地理编码和搜索 API v7 服务”中获取与“地点(搜索)API”等效的“图像媒体类型” - Get "Image Media Type" equivalent of "Places (Search) API" from "Geocoding and Search API v7 service" 如何在 HERE API 批处理地理编码过程中获取时区信息,尤其是时区 ID - How to get Timezone info, Timezone id in particular, in HERE API Batch geocoding process 如何使用此处的地图API从搜索位置获取多个地址列表(地理编码) - How can I get the multiple address list(Geocoding) from search a location using here maps api HERE 地理编码 API - 如何从加拿大位置获取 6 个字符的邮政编码 - HERE Geocoding API - How to get 6 character postal code from Canada locations 这里地理编码 API 不返回美国地址的 9 位 zip 代码 - HERE Geocoding API not returning 9 digit zip code for US Address 如何通过结果类型过滤HERE API V7 reversegeocode api? - How to filter the HERE API V7 reversegeocode api to by resulttype?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM