Exemple #1
0
        /// <summary>
        /// Calculates heatmap for the given profile.
        /// </summary>
        public static HeatmapResult CalculateHeatmap(this RouterBase router, Profile profile, Coordinate origin, int limitInSeconds, int zoom, CancellationToken cancellationToken)
        {
            if (!router.SupportsAll(profile))
            {
                throw new ArgumentException(string.Format("Profile {0} not supported.",
                                                          profile.FullName));
            }

            var routerOrigin = router.Resolve(profile, origin);

            return(router.CalculateHeatmap(profile, routerOrigin, limitInSeconds, zoom, cancellationToken));
        }
Exemple #2
0
 /// <summary>
 /// Calculates heatmap for the given profile.
 /// </summary>
 public static HeatmapResult CalculateHeatmap(this RouterBase router, Profile profile, RouterPoint origin, int limitInSeconds, int zoom = 16)
 {
     return(router.CalculateHeatmap(profile, origin, limitInSeconds, zoom, CancellationToken.None));
 }
        /// <summary>
        /// Calculates heatmap for the given profile.
        /// </summary>
        public static HeatmapResult CalculateHeatmap(this RouterBase router, Profile profile, Coordinate origin, int limitInSeconds, int zoom = 16)
        {
            var routerOrigin = router.Resolve(profile, origin);

            return(router.CalculateHeatmap(profile, routerOrigin, limitInSeconds, zoom));
        }