百度Map调用

baiduMap API

根据地址查询经纬度
http://api.map.baidu.com/geocoder?address=要查询的地址&output=json&key=你的key&city=
//address  要查询的地址
//output   数据输出格式  json/xml
//key      你申请的key
//city     城市

根据经纬度查询地址
http://api.map.baidu.com/geocoder?location=lat,lng&output=json&key=你的key //location 你的经纬度 lat,lng 顺序

移动端显示你的位置导航 http://api.map.baidu.com/marker?location=lat,lng&title=标题&content=内容&output=html //location 你的经纬度 lat,lng 顺序 //title 展示标题 //content 显示内容 //output 输出格式 html


调用静态图API 设定图片src地址 http://api.map.baidu.com/staticimage?center=lng,lat&width=300&height=200&zoom=11 //location lng lat 116.403,39.914 //width 图片大小 //height 图片大小 //zoom 缩放级别



关键字辅助查询接口 http://api.map.baidu.com/place/v2/suggestion?query=查询的字符串&region=131%20&output=json&ak=你的key //region 所属城市/区域名称或代号 "131" 或者北京 //query 查询字符串 //output 输出格式
周边信息检索
http://api.map.baidu.com/place/v2/search?&q=饭店&region=北京&output=json&ak=你的key //q 查询信息 //region 地区 城市 //output 输出格式

  

Now or nerver .
原文地址:https://www.cnblogs.com/iyueyao/p/3454252.html