【问题标题】:Here maps api for geocoder doesn't get the area shape for district这里地理编码器的地图 api 没有得到地区的区域形状
【发布时间】:2021-07-28 10:17:41
【问题描述】:

我使用 Here Geocode API 来获取该地区的区域形状。但是,API 上没有返回可用的形状。

这里是 API 的链接

https://geocoder.ls.hereapi.com/6.2/geocode.xml?xnlp=CL_JSMv3.0.17.0&apiKey=<APIKEY>&searchtext=Cakung%20Barat%20Kel.%20Jakarta%2013910%20Indonesia&mode=retrieveAddresses&jsoncallback=H.service.jsonp.handleResponse(37)&gen=9&additionalData=IncludeShapeLevel,district

这是回复

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:Search xmlns:ns2="http://www.navteq.com/lbsp/Search-Search/4">
    <Response>
        <MetaInfo>
            <Timestamp>2021-07-28T10:09:26.934Z</Timestamp>
        </MetaInfo>
        <View xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:SearchResultsViewType">
            <ViewId>0</ViewId>
            <Result>
                <Relevance>1.0</Relevance>
                <MatchLevel>district</MatchLevel>
                <MatchQuality>
                    <Country>1.0</Country>
                    <City>1.0</City>
                    <Subdistrict>1.0</Subdistrict>
                    <PostalCode>1.0</PostalCode>
                </MatchQuality>
                <Location>
                    <LocationId>NT_ezpLZJFGXsz2rWjEVeA2oD</LocationId>
                    <LocationType>area</LocationType>
                    <DisplayPosition>
                        <Latitude>-6.16492</Latitude>
                        <Longitude>106.93429</Longitude>
                    </DisplayPosition>
                    <NavigationPosition>
                        <Latitude>-6.16492</Latitude>
                        <Longitude>106.93429</Longitude>
                    </NavigationPosition>
                    <MapView>
                        <TopLeft>
                            <Latitude>-6.1516</Latitude>
                            <Longitude>106.92209</Longitude>
                        </TopLeft>
                        <BottomRight>
                            <Latitude>-6.19349</Latitude>
                            <Longitude>106.94349</Longitude>
                        </BottomRight>
                    </MapView>
                    <Address>
                        <Label>Cakung Barat Kel., Cakung, Jakarta, Indonesia</Label>
                        <Country>IDN</Country>
                        <County>DKI Jakarta</County>
                        <City>Jakarta</City>
                        <District>Cakung</District>
                        <Subdistrict>Cakung Barat Kel.</Subdistrict>
                        <PostalCode>13910</PostalCode>
                        <AdditionalData key="CountryName">Indonesia</AdditionalData>
                        <AdditionalData key="CountyName">DKI Jakarta</AdditionalData>
                    </Address>
                </Location>
            </Result>
        </View>
    </Response>
</ns2:Search>

它适用于城市和其他选项。基于documentation,地区包含在有效的形状级别中

【问题讨论】:

    标签: here-api geocoder


    【解决方案1】:

    我们已尝试重现该请求,但被确定为覆盖范围不支持获得雅加达的地区级形状。

    例如, 演示链接:https://tcs.ext.here.com/examples/v3/admin_boundaries

    此外,我们还有关于覆盖范围的文档信息。

    链接:https://developer.here.com/documentation/geocoder/dev_guide/topics/coverage-geocoder.html

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-08-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-04-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多