private void Rbut_Click(object sender, RoutedEventArgs e)
 {
     if (start == null || end == null)
     {
         MessageBox.Show("请在地图上点击确认起点终点!");
         return;
     }
     MBusRouteSearch.BusSearchByTwoPoi(start.LngX, start.LatY, end.LngX, end.LatY, cityCode.Text, CallBack);
 }
        //private void RunBusSearch()
        //{
        //    MBusRouteSearch.BusSearchByTwoPoi(116.418986262493, 39.9716071016544, 116.313314531309, 39.8535816388256, "010", CallBack);
        //}

        /// <summary>
        /// 另一种调用方式
        /// </summary>
        private void BusSearchWithOption()
        {
            MBusRouteSearchOption m_BusRouteSearchOption = new MBusRouteSearchOption();

            m_BusRouteSearchOption.CityCode  = "010";
            m_BusRouteSearchOption.Config    = "BR";//固定值
            m_BusRouteSearchOption.Encode    = "GBK";
            m_BusRouteSearchOption.RouteType = 0;
            m_BusRouteSearchOption.X1        = 116.38969318005;
            m_BusRouteSearchOption.Y1        = 39.9048015978361;
            m_BusRouteSearchOption.X2        = 116.323902107975;
            m_BusRouteSearchOption.Y2        = 39.907648620322;
            MBusRouteSearch.BusRouteSearchWithOption(m_BusRouteSearchOption, CallBack);
        }