根据百度的相关API,我们可以进行调用,根据所在的地的经纬度,来进行运算。得到的数据如下。
{
"rating": "3.5",
"tel": "0531-66591000;0531-66591001",
"typecode": "050100",
"areacode": "0531",
"cityname": "济南市",
"display_brand": "",
"shape_region": "",
"longitude": "117.142472",
"address": "舜华路2000号舜泰广场10号楼(近经十东路)",
"cinemazuo_flag": "0",
"diner_flag": "0",
"id": "B0FFG7VT6T",
"name": "聚福楼(高新区店)",
"group_flag": "0",
"distance": "366.4",
"entrances": [],
"recommend_flag": "0",
"exits": [],
"adcode": "370112",
"domain_list": [
{
"type": "html",
"id": "1015",
"name": "poiclosed"
},
{
"type": "img",
"id": "1003",
"name": "icon"
},
{
"type": "html",
"id": "1011",
"name": "traffic"
},
{
"type": "text",
"id": "1014",
"name": "roadaoi"
},
{
"type": "button",
"id": "1012",
"name": "ext_btn"
},
{
"type": "webimg",
"id": "1009",
"value": "http://store.is.autonavi.com/showpic/156c5994c2e2463eac4f841d26392716",
"name": "pic_info"
},
{
"type": "img",
"id": "1008",
"name": "overbooked"
},
{
"type": "img",
"id": "1007",
"name": "moreservice"
},
{
"type": "html",
"id": "1006",
"value": "<font color='#999999'>中餐厅</font>",
"name": "tag"
},
{
"type": "text",
"id": "1005",
"name": "parent_info"
},
{
"type": "array",
"name": "parent_other_rel",
"id": "1004"
},
{
"type": "text",
"id": "1010",
"name": "business_area"
},
{
"type": "html",
"id": "1002",
"value": "<font color='#666666'>武大郎烧饼,小红焖筋头巴脑,煲仔豆腐,爆炒腰花,大雁腿,酸辣汤,莲藕猪肉水饺,腊八蒜炒藕片,干煸牛肉丝,软炸虾仁,小西红柿炒鸡蛋,小红烧狮子头,馋嘴牛蛙,蒜蓉西兰花,特色牛三样,椒香大盘鸡,小桂花山药,金汤凤爪,蓝莓山药,苦菊拌撒子,男人养生菜,小炒黄牛肉,小炒鸡腿肉,农家小炒肉,椿苗山鸡蛋</font>",
"name": "deepinfo"
},
{
"type": "html",
"id": "1001",
"value": "<font color='#90969a'>人均:</font><font color='#f84b57'>¥</font><font color='#f84b57'>61</font>",
"name": "price"
},
{
"type": "text",
"id": "1013",
"name": "aoi"
}
],
"newtype": "050100",
"disp_name": "聚福楼(高新区店)",
"cpdata": "",
"latitude": "36.663656",
"discount_flag": "0"
}
我们便可以用这种方式来进行检索,最终得到结果
选择里面的属性,就可以得到相应的特性,我们还可以根据评分进行分类,然后得到结果。