Here api v7 API缺少地区数据
我注意到V7API没有返回“地区”数据。至少在我尝试过的Here api v7 API缺少地区数据,here-api,Here Api,我注意到V7API没有返回“地区”数据。至少在我尝试过的revgeocode和lookup端点中没有。如何获取这些数据?接收一个点的“地区”取决于该地行政区划的工作方式。如果国家使用“地区”作为行政区划,您将在回复中看到它。例如 https://revgeocode.search.hereapi.com/v1/revgeocode?apikey={{apiKey}}&at=52.5,13.4 答复: { "items": [ {
revgeocode
和lookup
端点中没有。如何获取这些数据?接收一个点的“地区”取决于该地行政区划的工作方式。如果国家使用“地区”作为行政区划,您将在回复中看到它。例如
https://revgeocode.search.hereapi.com/v1/revgeocode?apikey={{apiKey}}&at=52.5,13.4
答复:
{
"items": [
{
"title": "Neuenburger Straße 21, 10969 Berlin, Deutschland",
"id": "here:af:streetsection:2wUtzSvdGL0dYtTkTD2UxB:CgcIBCCirOZQEAEaAjIx",
"resultType": "houseNumber",
"houseNumberType": "PA",
"address": {
"label": "Neuenburger Straße 21, 10969 Berlin, Deutschland",
"countryCode": "DEU",
"countryName": "Deutschland",
"stateCode": "BE",
"state": "Berlin",
"countyCode": "B",
"county": "Berlin",
"city": "Berlin",
"district": "Kreuzberg",
"street": "Neuenburger Straße",
"postalCode": "10969",
"houseNumber": "21"
},
"position": {
"lat": 52.49991,
"lng": 13.39976
},
"access": [
{
"lat": 52.50002,
"lng": 13.39988
}
],
"distance": 19,
"mapView": {
"west": 13.39545,
"south": 52.49947,
"east": 13.40042,
"north": 52.5007
}
}
]
}
{
"items": [
{
"title": "Sport Club",
"id": "here:pds:place:15266jm4-24c37d92509f4f1aa61a79c1c7979731",
"resultType": "place",
"address": {
"label": "Sport Club, Calle Los Queltehues, 2260000 Quillota, Valparaíso, Chile",
"countryCode": "CHL",
"countryName": "Chile",
"stateCode": "VS",
"state": "Valparaíso",
"county": "Quillota",
"city": "Quillota",
"district": "Quillota",
"street": "Calle Los Queltehues",
"postalCode": "2260000"
},
"position": {
"lat": -32.86571,
"lng": -71.23687
},
"access": [
{
"lat": -32.86571,
"lng": -71.23687
}
],
"distance": 15,
"categories": [
{
"id": "100-1000-0000",
"name": "Restaurante",
"primary": true
}
]
}
]
}
在以县/公社为行政区划的地方,县名称将在district对象中返回
https://revgeocode.search.hereapi.com/v1/revgeocode?apikey={{apiKey}}&at=-32.86558,-71.23689
答复:
{
"items": [
{
"title": "Neuenburger Straße 21, 10969 Berlin, Deutschland",
"id": "here:af:streetsection:2wUtzSvdGL0dYtTkTD2UxB:CgcIBCCirOZQEAEaAjIx",
"resultType": "houseNumber",
"houseNumberType": "PA",
"address": {
"label": "Neuenburger Straße 21, 10969 Berlin, Deutschland",
"countryCode": "DEU",
"countryName": "Deutschland",
"stateCode": "BE",
"state": "Berlin",
"countyCode": "B",
"county": "Berlin",
"city": "Berlin",
"district": "Kreuzberg",
"street": "Neuenburger Straße",
"postalCode": "10969",
"houseNumber": "21"
},
"position": {
"lat": 52.49991,
"lng": 13.39976
},
"access": [
{
"lat": 52.50002,
"lng": 13.39988
}
],
"distance": 19,
"mapView": {
"west": 13.39545,
"south": 52.49947,
"east": 13.40042,
"north": 52.5007
}
}
]
}
{
"items": [
{
"title": "Sport Club",
"id": "here:pds:place:15266jm4-24c37d92509f4f1aa61a79c1c7979731",
"resultType": "place",
"address": {
"label": "Sport Club, Calle Los Queltehues, 2260000 Quillota, Valparaíso, Chile",
"countryCode": "CHL",
"countryName": "Chile",
"stateCode": "VS",
"state": "Valparaíso",
"county": "Quillota",
"city": "Quillota",
"district": "Quillota",
"street": "Calle Los Queltehues",
"postalCode": "2260000"
},
"position": {
"lat": -32.86571,
"lng": -71.23687
},
"access": [
{
"lat": -32.86571,
"lng": -71.23687
}
],
"distance": 15,
"categories": [
{
"id": "100-1000-0000",
"name": "Restaurante",
"primary": true
}
]
}
]
}
非常感谢。这是有用的信息。文件里有这个吗?