沿途搜索2
2021年04月12日

接口描述

请求路径:https://mapapi-places.apigw-gz.didiyunapi.com/api/v1/place/route_search

请求方法:POST

输入参数

参数名称 类型 必填 默认值 说明
route array<LatLng> 构成路线的点列表
keywords string 搜索关键词
location LatLng 当前位置

LatLng:

参数名称 类型 必填 默认值 描述
lng double 经度
lat double 纬度

输出参数

参数名称 类型 描述
status int 状态码
info string 状态说明
result Result 请求返回数据

Result:

参数名称 类型 描述
id string 滴滴poi id
parent int
name string 名称
category string poi类型
category_code string poi类型编码
address string 地址
location string 经纬度
distance string 周边检索时离中心点距离
provincecode string poi所在省编码
provincename string poi所在省名称
citycode string poi所在城市编码
cityname string poi所在城市名称
adcode string poi所在区县编码
adname string poi所在区县名称
tel string 电话
postcode string 邮编
website string 网站
email string 邮箱
entr_location string 入口经纬度
exit_location string 出口经纬度
navi_location string poi对应的导航引导点坐标
alias string 别名
brand string 品牌
brand_code string 品牌编码
food_type string 风味类型
food_type_code string 风味类型编码
business_area string 所在商圈
parking_type string 停车场类型:地下,地面,路边等
indoor_map Indoor 室内地图相关数据
deep_info DeepInfo
photos array<Photo> 照片相关信息
subpois array<SubPoi>

Indoor:

参数名称 类型 描述
cpid string 父poi id
floor string 楼层索引,一般数字表示,例如8
truefloor string 所在楼层,例如F8

DeepInfo:

参数名称 类型 描述
rating string 评价
cost string 人均消费,景点门票等
price string 景点门票,酒店起步价
price_highest string 酒店最高价
star string 星级标准
service string 服务评分
wifi string 是否有wifi
opentime string 营业时间
is_24h int 是否24小时
is_open int 现在是否在营业
intro string 介绍

Pohto:

参数名称 类型 描述
title string 图片介绍
url string 具体链接
height int 图片高度
width int 图片宽度

SubPoi:

参数名称 类型 描述
id string 滴滴poi id
name string 名称
address string 地址
location string 经纬度
provincename string poi所在省名称
cityname string poi所在城市名称
adcode string poi所在区县编码
adname string

错误码

错误码:

示例

请求:

curl -X POST 'https://mapapi-places.apigw-gz.didiyunapi.com/api/v1/place/route_search' \
--header 'Authorization: AppCode XXX' \
-d '{
    "keywords":"加油站",
    "route":[{"lat":40.04963688789803,"lng":116.28651828673424},{"lat":40.04963688789803,"lng":116.28651828673424},{"lat":40.04963688789803,"lng":116.28663506772119},{"lat":40.04964376438704,"lng":116.28673388240246},{"lat":40.04966439384984,"lng":116.28687761284795},{"lat":40.04968502330638,"lng":116.28694049491783},{"lat":40.04970565275673,"lng":116.28700337698773},{"lat":40.04960938193514,"lng":116.28715609058605},{"lat":40.04958187596114,"lng":116.28722795580879},{"lat":40.04956812296999,"lng":116.28726388842017},{"lat":40.04955436997605,"lng":116.2873357536429},{"lat":40.04915553194479,"lng":116.28728185472585},{"lat":40.048859840173805,"lng":116.28727287157301},{"lat":40.04851601092025,"lng":116.28729982103154},{"lat":40.04826845278379,"lng":116.28735371994858},{"lat":40.04807590694497,"lng":116.28743456832417},{"lat":40.04787648389572,"lng":116.2875693156168},{"lat":40.04765643019874,"lng":116.28778491128503},{"lat":40.04756703318145,"lng":116.28787474281344},{"lat":40.04747763604692,"lng":116.28801847325893},{"lat":40.04740886894055,"lng":116.28810830478736},{"lat":40.04729884142611,"lng":116.2882879678442},{"lat":40.047195690470005,"lng":116.28849458035958},{"lat":40.04705815561911,"lng":116.28877305809769},{"lat":40.0468449760518,"lng":116.28927611465687},{"lat":40.046734947627186,"lng":116.28937492933814},{"lat":40.04662491902499,"lng":116.2894917103251},{"lat":40.046384230838555,"lng":116.28971628914616},{"lat":40.046315462629224,"lng":116.28977917121605},{"lat":40.046239817518796,"lng":116.28981510382742},{"lat":40.04615041864375,"lng":116.28985103643879},{"lat":40.046026635392394,"lng":116.28988696905016},{"lat":40.04585471383709,"lng":116.28994985112006},{"lat":40.04491257601606,"lng":116.29025527831669},{"lat":40.04428676924496,"lng":116.29043494137355},{"lat":40.044217998919805,"lng":116.29045290767924},{"lat":40.043619694163766,"lng":116.29060562127755},{"lat":40.04331022412623,"lng":116.29068646965314},{"lat":40.04273942014984,"lng":116.29083020009861},{"lat":40.042698157026564,"lng":116.29083918325146},{"lat":40.04262938509896,"lng":116.29085714955714},{"lat":40.04253310428376,"lng":116.2909110484742},{"lat":40.0421823658786,"lng":116.2909559642384},{"lat":40.04174222101341,"lng":116.29104579576683},{"lat":40.04119891327716,"lng":116.29116257675379},{"lat":40.04108199838811,"lng":116.2911895262123},{"lat":40.04063496902245,"lng":116.29127935774073},{"lat":40.04049054352407,"lng":116.2913152903521},{"lat":40.04035299514598,"lng":116.29135122296347},{"lat":40.03886745498184,"lng":116.29168359961865},{"lat":40.03789770991574,"lng":116.29185427952265},{"lat":40.03691419551467,"lng":116.29200699312098},{"lat":40.0367835177085,"lng":116.29202495942666},{"lat":40.03627455965545,"lng":116.29211479095508},{"lat":40.03615763632294,"lng":116.29212377410792},{"lat":40.036068224227506,"lng":116.29213275726077},{"lat":40.03515346297786,"lng":116.29230343716478},{"lat":40.03433498198527,"lng":116.29244716761025},{"lat":40.03419054314338,"lng":116.29246513391594},{"lat":40.03419054314338,"lng":116.29246513391594},{"lat":40.03419054314338,"lng":116.29246513391594},{"lat":40.03383976182516,"lng":116.29252801598584},{"lat":40.03384663990761,"lng":116.2930490388507},{"lat":40.03384663990761,"lng":116.2931119209206},{"lat":40.033764102872965,"lng":116.29351616279851},{"lat":40.03377785905232,"lng":116.29481871996066},{"lat":40.03377785905232,"lng":116.29492651779476},{"lat":40.03337892872395,"lng":116.29503431562888},{"lat":40.03310380299996,"lng":116.29508821454593},{"lat":40.032691112333055,"lng":116.29516906292152},{"lat":40.032505400718236,"lng":116.29518702922721},{"lat":40.03246413140184,"lng":116.29519601238005},{"lat":40.032299053886504,"lng":116.29523194499141},{"lat":40.03133609375047,"lng":116.29545652381248},{"lat":40.03122604029784,"lng":116.29550143957668},{"lat":40.03084773020004,"lng":116.29559127110511},{"lat":40.03052444536286,"lng":116.2956721194807},{"lat":40.029987926719656,"lng":116.29581584992617},{"lat":40.029946655879996,"lng":116.29582483307901},{"lat":40.029815964723014,"lng":116.29585178253754},{"lat":40.02910747672428,"lng":116.2959685635245},{"lat":40.028784183639004,"lng":116.2960314455944},{"lat":40.02828892317507,"lng":116.29612127712282},{"lat":40.027855567319506,"lng":116.2962470412626},{"lat":40.02769047865036,"lng":116.29629195702682},{"lat":40.02633536072517,"lng":116.29662433368199},{"lat":40.025723141261096,"lng":116.29678603043315},{"lat":40.02480824126019,"lng":116.29698365979569},{"lat":40.0246362662059,"lng":116.29701959240705},{"lat":40.024505564874715,"lng":116.29704654186558},{"lat":40.02449868585035,"lng":116.29697467664285},{"lat":40.024285435750926,"lng":116.29535770913121},{"lat":40.02423728241041,"lng":116.29490855148909},{"lat":40.02415473374762,"lng":116.2942976970958},{"lat":40.024037789637674,"lng":116.29330955028313},{"lat":40.02402403149392,"lng":116.29324666821323},{"lat":40.02401715242098,"lng":116.29317480299049},{"lat":40.0239552407335,"lng":116.2926268306671},{"lat":40.02370759342165,"lng":116.2910817283782},{"lat":40.02357001119333,"lng":116.29000375003712},{"lat":40.02354937383515,"lng":116.28987798589732},{"lat":40.02345994521093,"lng":116.2891323842114},{"lat":40.02333612076845,"lng":116.28832390045557},{"lat":40.02321917525532,"lng":116.28773999552081},{"lat":40.023054075366105,"lng":116.28721897265595},{"lat":40.02297840445004,"lng":116.28693151176499},{"lat":40.02289585426405,"lng":116.28675184870815},{"lat":40.022579410959196,"lng":116.28609607855064},{"lat":40.02254501485933,"lng":116.2860421796336},{"lat":40.0221253810451,"lng":116.28524267903062},{"lat":40.02176765837879,"lng":116.2845599594146},{"lat":40.02168510672789,"lng":116.28439826266343},{"lat":40.02160943429351,"lng":116.28421859960658},{"lat":40.02157503770465,"lng":116.28412876807815},{"lat":40.021533761775174,"lng":116.28399402078551},{"lat":40.0214787271637,"lng":116.28377842511729},{"lat":40.02141681317269,"lng":116.28344604846212},{"lat":40.02137553714752,"lng":116.28308672234843},{"lat":40.021354899125555,"lng":116.28277231199894},{"lat":40.021354899125555,"lng":116.28277231199894},{"lat":40.021354899125555,"lng":116.28277231199894},{"lat":40.02119667408306,"lng":116.28243993534377},{"lat":40.0211553979247,"lng":116.2824668848023},{"lat":40.02041930224047,"lng":116.28303282343137},{"lat":40.02021979830408,"lng":116.28319452018253},{"lat":40.01961440347813,"lng":116.2836526609775},{"lat":40.01899524412312,"lng":116.28422758275941},{"lat":40.01881637481907,"lng":116.28438927951058},{"lat":40.018616866196,"lng":116.28457792572027},{"lat":40.01848615333358,"lng":116.28468572355438},{"lat":40.01812841158764,"lng":116.28501810020956},{"lat":40.018025216504725,"lng":116.28510793173798},{"lat":40.01764683319877,"lng":116.28543132524031},{"lat":40.017364764278454,"lng":116.28566488721421},{"lat":40.01705517509697,"lng":116.28593438179948},{"lat":40.01691757945437,"lng":116.2860242133279},{"lat":40.016745584511,"lng":116.2861499774677},{"lat":40.016587348780206,"lng":116.2862577753018},{"lat":40.016339674725884,"lng":116.28641947205297},{"lat":40.016236476937934,"lng":116.28647337097003},{"lat":40.015988801610206,"lng":116.28658116880413},{"lat":40.015988801610206,"lng":116.28658116880413},{"lat":40.015796164622714,"lng":116.28666201717972},{"lat":40.01575488519751,"lng":116.28668896663825},{"lat":40.01566544635722,"lng":116.28672489924962},{"lat":40.01564480660821,"lng":116.28673388240246},{"lat":40.01562416685297,"lng":116.2867428655553},{"lat":40.01554848769692,"lng":116.28677879816667},{"lat":40.01511505091392,"lng":116.28691354545931},{"lat":40.0149774513595,"lng":116.28694947807068},{"lat":40.01444769048484,"lng":116.28706625905762},{"lat":40.01437889006954,"lng":116.28708422536332},{"lat":40.0138353643504,"lng":116.28716507373889},{"lat":40.01372528266498,"lng":116.28718304004458},{"lat":40.01359456043292,"lng":116.28720998950311},{"lat":40.01353951941823,"lng":116.28721897265595},{"lat":40.013505118761486,"lng":116.28722795580879},{"lat":40.01336751596111,"lng":116.28724592211448},{"lat":40.013278073992126,"lng":116.28725490526732},{"lat":40.013209272397745,"lng":116.28726388842017},{"lat":40.01303726810838,"lng":116.28729982103154},{"lat":40.01256941424819,"lng":116.28736270310144},{"lat":40.01233548611546,"lng":116.28740761886564},{"lat":40.01227356382847,"lng":116.28741660201848},{"lat":40.01109702970166,"lng":116.28760524822818},{"lat":40.01092502008916,"lng":116.2876321976867},{"lat":40.01073924922079,"lng":116.28766813029807},{"lat":40.00929434742963,"lng":116.28789270911913},{"lat":40.0091360944227,"lng":116.28791965857766},{"lat":40.00879894548882,"lng":116.28796457434187},{"lat":40.00752602123677,"lng":116.28815322055156},{"lat":40.00689987140859,"lng":116.28825203523283},{"lat":40.00563379267089,"lng":116.28845864774821},{"lat":40.0054273645635,"lng":116.28848559720673},{"lat":40.0050557923972,"lng":116.28854847927663},{"lat":40.00496633953662,"lng":116.28855746242948},{"lat":40.004587883829544,"lng":116.28861136134653},{"lat":40.002633642793086,"lng":116.28893475484885},{"lat":40.00233774930962,"lng":116.28899763691875},{"lat":40.00209690482984,"lng":116.28904255268297},{"lat":40.002028091965315,"lng":116.2890695021415},{"lat":40.00173907717692,"lng":116.28922221573981},{"lat":40.00150511192837,"lng":116.28938391249098},{"lat":40.001284908609136,"lng":116.28958154185351},{"lat":40.00115416255235,"lng":116.28975222175752},{"lat":40.001126637034815,"lng":116.28978815436889},{"lat":40.0008238556095,"lng":116.29020137939965},{"lat":40.000644938681575,"lng":116.29043494137355},{"lat":40.00060365009318,"lng":116.29049782344345},{"lat":40.000466021284865,"lng":116.29066850334745},{"lat":40.00030774781237,"lng":116.29085714955714},{"lat":40.000108185085,"lng":116.2910996946839},{"lat":39.999998081261595,"lng":116.29123444197653},{"lat":39.998656176646705,"lng":116.29303107254502},{"lat":39.99817446086547,"lng":116.29365989324398},{"lat":39.99775467719945,"lng":116.29421684872021},{"lat":39.99740370854721,"lng":116.29456719168107},{"lat":39.997197255556244,"lng":116.2947199052794},{"lat":39.99705961988218,"lng":116.29478278734929},{"lat":39.997004565534866,"lng":116.29481871996066},{"lat":39.996935747538345,"lng":116.29483668626635},{"lat":39.99689445670714,"lng":116.29484566941919},{"lat":39.9967981113372,"lng":116.29487261887772},{"lat":39.99663982936295,"lng":116.29492651779476},{"lat":39.996295736848964,"lng":116.29498939986466},{"lat":39.99441696114661,"lng":116.29541160804825},{"lat":39.99419673496939,"lng":116.29544754065964},{"lat":39.99373563411095,"lng":116.29563618686932},{"lat":39.99354981646704,"lng":116.29574398470344},{"lat":39.99333646965982,"lng":116.29591466460744},{"lat":39.993185061843974,"lng":116.29605839505292},{"lat":39.99296483169448,"lng":116.29629195702682},{"lat":39.99279965861632,"lng":116.29651653584789},{"lat":39.99260695618696,"lng":116.2967321315161},{"lat":39.992297254715,"lng":116.29711840708832},{"lat":39.99199443414011,"lng":116.29746875004918},{"lat":39.99176731782791,"lng":116.2977292614816},{"lat":39.99172602387182,"lng":116.29777417724583},{"lat":39.99128555345351,"lng":116.29819638542942},{"lat":39.99118920017085,"lng":116.29834909902775},{"lat":39.991037787594934,"lng":116.29852876208459},{"lat":39.990734961436175,"lng":116.29877130721134},{"lat":39.99063860737681,"lng":116.29884317243408},{"lat":39.990514723386525,"lng":116.2989330039625},{"lat":39.99047342867317,"lng":116.29895995342103},{"lat":39.990349544383264,"lng":116.29901385233808},{"lat":39.99021877738909,"lng":116.2990587681023},{"lat":39.990136187579566,"lng":116.29907673440798},{"lat":39.99006736266199,"lng":116.29909470071367},{"lat":39.989737002092426,"lng":116.2991665659364},{"lat":39.989737002092426,"lng":116.2991665659364},{"lat":39.98889732845345,"lng":116.29928334692336},{"lat":39.9888560327623,"lng":116.2992923300762},{"lat":39.98873902816845,"lng":116.29931029638189},{"lat":39.98829853848821,"lng":116.29938216160463},{"lat":39.98814711950462,"lng":116.29940911106316},{"lat":39.98812647143538,"lng":116.299418094216},{"lat":39.98794063853154,"lng":116.29942707736883},{"lat":39.987823632369725,"lng":116.29943606052167},{"lat":39.98720418464481,"lng":116.29947199313305},{"lat":39.98696328679037,"lng":116.29948995943873},{"lat":39.98683939613446,"lng":116.29949894259157},{"lat":39.98661914552471,"lng":116.29948995943873},{"lat":39.98648837138924,"lng":116.2994630099802},{"lat":39.986275002525446,"lng":116.29940911106316},{"lat":39.98603410139444,"lng":116.29925639746483},{"lat":39.98591709196714,"lng":116.29914859963073},{"lat":39.9858551457186,"lng":116.29908571756083},{"lat":39.98580696526426,"lng":116.29915758278356},{"lat":39.98565554075796,"lng":116.29938216160463},{"lat":39.98561424310705,"lng":116.29943606052167},{"lat":39.98560736016282,"lng":116.29945402682736},{"lat":39.98545593521408,"lng":116.29962470673136},{"lat":39.98535957370834,"lng":116.29974148771832},{"lat":39.985146201319,"lng":116.29977742032969},{"lat":39.98500854135935,"lng":116.29979538663538},{"lat":39.984829582997094,"lng":116.29981335294106},{"lat":39.984327120474205,"lng":116.29989420131665},{"lat":39.984168809598714,"lng":116.29992115077518},{"lat":39.98417569268787,"lng":116.30003793176212},{"lat":39.98418945886414,"lng":116.30009183067918},{"lat":39.984203225037646,"lng":116.30023556112465},{"lat":39.984203225037646,"lng":116.3003074263474},{"lat":39.98423764045924,"lng":116.30062183669688},{"lat":39.98425140662303,"lng":116.30080149975373},{"lat":39.98425140662303,"lng":116.30080149975373},{"lat":39.984265172784006,"lng":116.3009631965049},{"lat":39.98447854792494,"lng":116.30091828074067},{"lat":39.98470568847168,"lng":116.30087336497647},{"lat":39.98488464715848,"lng":116.30084641551794},{"lat":39.98492594525038,"lng":116.30084641551794},{"lat":39.98507737137382,"lng":116.30081946605941},{"lat":39.985104903360224,"lng":116.30081048290657},{"lat":39.985297626954264,"lng":116.30076556714236},{"lat":39.985414637442545,"lng":116.30073861768383},{"lat":39.98539398854743,"lng":116.30039725787582},{"lat":39.98539398854743,"lng":116.30026251058318}],
    "location":{
        "lat":40.04966439384984,
        "lng":116.28687761284795
    }
}'

输出:

{
    "status": 0,
    "info": "OK",
    "result": [
        {
            "adcode": "110108",
            "address": "北京市海淀区万泉河路",
            "adname": "海淀区",
            "brand": "",
            "brand_code": "0",
            "category": "室内及附属设施:通行设施类:门/出入口",
            "category_code": "801010",
            "citycode": "110000",
            "cityname": "北京市",
            "deep_info": {
                "is_24h": "",
                "opentime": "",
                "star": "0",
                "wifi": ""
            },
            "distance": "",
            "email": "",
            "entr_location": "",
            "exit_location": "",
            "food_type": "",
            "food_type_code": "",
            "id": "1157659316082180096",
            "indoor_map": [],
            "location": "116.296829899,39.992961799",
            "name": "中国石化加油站-西南1门",
            "navi_location": "116.296829899,39.992961799",
            "parking_type": "",
            "photos": [],
            "postcode": "",
            "provincecode": "110000",
            "provincename": "北京市",
            "subpois": [],
            "tel": "",
            "website": ""
        },
        {
            "adcode": "110108",
            "address": "北京市海淀区万泉河路",
            "adname": "海淀区",
            "brand": "",
            "brand_code": "0",
            "category": "室内及附属设施:通行设施类:门/出入口",
            "category_code": "801010",
            "citycode": "110000",
            "cityname": "北京市",
            "deep_info": {
                "is_24h": "",
                "opentime": "",
                "star": "0",
                "wifi": ""
            },
            "distance": "",
            "email": "",
            "entr_location": "",
            "exit_location": "",
            "food_type": "",
            "food_type_code": "",
            "id": "1157659380905148417",
            "indoor_map": [],
            "location": "116.29754,39.992452",
            "name": "中国石化加油站-西南门",
            "navi_location": "116.29754,39.992452",
            "parking_type": "",
            "photos": [],
            "postcode": "",
            "provincecode": "110000",
            "provincename": "北京市",
            "subpois": [],
            "tel": "",
            "website": ""
        },
        {
            "adcode": "110108",
            "address": "北京市海淀区万泉河路30号石化加油站",
            "adname": "海淀区",
            "brand": "易捷便利店",
            "brand_code": "85679",
            "business_area": "西苑",
            "category": "购物:便利店",
            "category_code": "131100",
            "citycode": "110000",
            "cityname": "北京市",
            "deep_info": {
                "is_24h": "0",
                "opentime": "",
                "star": "0",
                "wifi": ""
            },
            "distance": "",
            "email": "",
            "entr_location": "",
            "exit_location": "",
            "food_type": "",
            "food_type_code": "",
            "id": "2000000000001375399",
            "indoor_map": [],
            "location": "116.29737,39.99285",
            "name": "易捷便利店(西苑店)",
            "navi_location": "116.29732,39.99281",
            "parking_type": "",
            "photos": [],
            "postcode": "",
            "provincecode": "110000",
            "provincename": "北京市",
            "subpois": [],
            "tel": "010-62567288",
            "website": ""
        }
    ]
}

项搜索结果

    空空如也
    没有找到您要搜索的内容,请直接拨打服务热线400-0590-666