Exemplo n.º 1
0
            /// <summary>
            /// 取得站點資料
            /// </summary>
            /// <param name="lat">緯度</param>
            /// <param name="lng">經度</param>
            /// <param name="locationRadius">半徑範圍</param>
            /// <returns></returns>
            public static IEnumerable <BusStopEntity> Get(float lat, float lng, int locationRadius)
            {
                IEnumerable <BusStopEntity> list;

                using (var openData = new Stop())
                {
                    var table = openData.GetByLatLng(lat, lng, locationRadius);

                    list = table.ToList <BusStopEntity>();
                }

                return(list);
            }