MapAbc Ajax 关键字查询Http请求

在引路蜂新的版本,将增加对MapABC地图服务的支持,这样中国用户在查询地点,路径时可以选择谷歌或是MapABC地图服务。
地图服务是地址查询,本地查询,路径查询,逆向地址编码等地图服务。
下面是MapAbc Ajax 关键字查询Http请求的格式 ,具体内容可以参见 MapABC 地图开发文档。

http://search1.mapabc.com/sisserver?highLight=false
& enc=utf-8&cityCode=nanjing&config=BESN&searchName=%E9%85%92%E5%BA%97
& number=2&searchType=&batch=1&resType=JSON
& srctype=&language=
& a_k=b0a7db0b3a30f944a21c3682064dc70ef5b738b062f6479a5eca39725798b1ee300bd8d5de3a4ae3
其中 searchName 为要查询地址的UTF8格式串, a_k 为 MapABC 地图Key值,可以自行申请。
返回JSON 格式。

{
    "message": "ok",
    "total": 2943,
    "count": 200,
    "poilist": [
        {
            "gridcode": "4818064422",
            "tel": "025-84818888",
            "type": "住宿服务;宾馆酒店;五星级宾馆",
            "imageid": "0p242008122300000590 ",
            "timestamp": "2009-05-15",
            "citycode": "025",
            "distance": "0",
            "buscode": "1",
            "pguid": "B00190BABL",
            "address": "中山东路307号",
            "name": "钟山宾馆(南门)",
            "drivedistance": "0",
            "match": "10",
            "srctype": "basepoi",
            "y": "32.0400000",
            "x": "118.8116760"
        },
        {
            "gridcode": "4818068212",
            "tel": "025-83358888",
            "type": "住宿服务;宾馆酒店;五星级宾馆",
            "timestamp": "2009-01-14",
            "citycode": "025",
            "distance": "0",
            "buscode": "1",
            "pguid": "B001905362",
            "address": "鼓楼区中央路193号",
            "name": "玄武饭店",
            "drivedistance": "0",
            "match": "10",
            "srctype": "basepoi",
            "y": "32.0708794",
            "x": "118.7834538"
        }
    ],
    "searchtime": 4,
    "pinyin": {
        "list": [
            
        ]
    },
    "cplist": [
        
    ],
    "adlist": [
        
    ]
}


你可能感兴趣的:(Ajax)