<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>
公交导航</title>
<script type="text/javascript" src="http://api.map.baidu.com/api?key=46ce9d0614bf7aefe0ba562f8cf87194&v=1.1&services=true">
</script>
</head>
<body>
<div style="width:520px;height:340px;border:1px solid gray" id="container">
</div>
</body>
</html>
<script type="text/javascript">var map = new BMap.Map("container");
map.centerAndZoom(new BMap.Point(116.404, 39.915), 14);var transit = new BMap.TransitRoute(map, {
  renderOptions: {map: map}
});
transit.search("王府井", "西单");
</script>这个是百度公交查询的事例 我现在有终点的经度和纬度(即西单的经度纬度),只要一个文本框输入起始点(即王府井)就可以查询出 王府井到西单的公交线路
不要关键字搜索,要经纬度搜索请教高手,与该帖子无关的请表发帖