我正在尝试使用API获取场地列表 https://indoor-discovery.venue.maps.api.here.com/discovery/v2?app_id=XXXXXXXXXXXXXXXXXXXX&app_code=XXXXXXXXXXXXXXXXXXXX&at=31.2403,74.6354,8.6291,77.5743
“ at”参数几乎覆盖了整个国家。但结果总是以
{
"hostname": "ip-10-13-214-44",
"type": "venues",
"status": {
"code": "OK",
"reason": "DISCOVERY_SUCCESSFULL"
},
"results": {
"items": []
}
}
答案 0 :(得分:0)
边界框的最大值为100km x 100km。如果您在较小的区域内搜索,您会在列表中得到一些结果。这是有关金奈的报道之一:
{
"hostname": "ip-10-13-214-44", "type": "venues", "status": { "code": "OK", "reason": "DISCOVERY_SUCCESSFULL" }, "results": { "items": [ { "id": "DM_17331", "title": "Phoenix Marketcity Mall", "address": { "countryCode": "IND", "city": "Chennai", "postalCode": "600042", "street": "Radha Mohan Street", "house": "" }, "position": [ 12.991487949990416, 80.21652530007341 ], "distance": 1045.380777404391, "type": "urn:nlp-types:venue", "vicinity": "Radha Mohan Street,600042,Chennai,IND", "bbox": [ [ 12.992687434189028, 80.21572801724027 ], [ 12.990288596080005, 80.21732267846822 ] ], "minFloor": -1, "maxFloor": 3, "namespace": "public" }, { "id": "DM_3869", "title": "Maya Plaza", "address": { "countryCode": "IND", "city": "Chennai", "postalCode": "600017", "street": "Sir Thyagaraya Road", "house": "" }, "position": [ 13.041404800089397, 80.23480899848522 ], "distance": 6860.646286724997, "type": "urn:nlp-types:venue", "vicinity": "Sir Thyagaraya Road,600017,Chennai,IND", "bbox": [ [ 13.041557002816027, 80.23472596161558 ], [ 13.04125261448761, 80.23489217568006 ] ], "minFloor": 0, "maxFloor": 4, "namespace": "public" }, { "id": "DM_3866", "title": "Challa Mall", "address": { "countryCode": "IND", "city": "Chennai", "postalCode": "600017", "street": "Sir Thyagaraya Road", "house": "" }, "position": [ 13.040501949969517, 80.24325910031074 ], "distance": 7183.4301593814025, "type": "urn:nlp-types:venue", "vicinity": "Sir Thyagaraya Road,600017,Chennai,IND", "bbox": [ [ 13.040704496188196, 80.24306093132118 ], [ 13.040299554031115, 80.24345735684514 ] ], "minFloor": -1, "maxFloor": 1, "namespace": "public" }, { "id": "DM_3871", "title": "Kasi Arcade Mall", "address": { "countryCode": "IND", "city": "Chennai", "postalCode": "600017", "street": "Sir Thyagaraya Road", "house": "" }, "position": [ 13.040300249964666, 80.24435859999508 ], "distance": 7224.9813794400025, "type": "urn:nlp-types:venue", "vicinity": "Sir Thyagaraya Road,600017,Chennai,IND", "bbox": [ [ 13.040532567087016, 80.24415738929856 ], [ 13.04006805606027, 80.24455999517599 ] ], "minFloor": -1, "maxFloor": 1, "namespace": "public" },
答案 1 :(得分:0)
我从Google地图复制了纬度/经度,然后我意识到经度有空格,一开始,我删除了空格并开始使用它!