コード例 #1
0
 /// <summary>
 /// constructor for pathfinder strategy
 /// </summary>
 public PathfinderStrategy()
 {
     _turns = new List<Turn>();
     _turnImages = new List<Image>();
     _pois = new List<PointOfInterest>();
     _path = new TrackPath();
     _web = new WebInterface();
     _cache = new CacheStrategy();
     _rideMapFid = new FiducialStrategy();
     _turnMapFid = new FiducialStrategy();
     _rideMpaPainter = new MapPainter(_rideMapFid);
     _turnMapPainter = new MapPainter(_turnMapFid);
 }
コード例 #2
0
 public static Address getAddress(Location loc, WebInterface web)
 {
     string fullGeoUrl = BASE_URL + loc.Lat + "," + loc.Lon + "&sensor=false";
     return new Address(web.downloadWebPage(fullGeoUrl), loc);
 }
コード例 #3
0
        public static Address getAddress(Location loc, WebInterface web)
        {
            string fullGeoUrl = BASE_URL + loc.Lat + "," + loc.Lon + "&sensor=false";

            return(new Address(web.downloadWebPage(fullGeoUrl), loc));
        }