Exemple #1
0
        /// <summary>
        /// This service will calculate a set of locations that can be reached from the origin point based on fuel, energy, or time budget that is specified. A polygon boundary (or Isochrone) is returned in a counterclockwise orientation as well as the precise polygon center which was the result of the origin point.
        ///
        /// The returned polygon can be used for further processing such as Search Inside Geometry to search for POIs within the provided Isochrone
        /// </summary>
        /// <param name="routeRequest"></param>
        /// <returns></returns>
        public virtual async Task <Response <RouteRangeResponse> > GetRouteRange(RouteRangeRequest routeRequest)
        {
            var res = await ExecuteRequest <RouteRangeResponse, RouteRangeRequest>
                          ("https://atlas.microsoft.com/route/range/json", routeRequest);

            return(res);
        }
Exemple #2
0
        public void GetRouteRange()
        {
            var am  = new AzureMapsToolkit.AzureMapsServices(_KEY);
            var req = new RouteRangeRequest
            {
                Query           = "52.50931,13.42936",
                TimeBudgetInSec = "12000"
            };
            var range = am.GetRouteRange(req).Result;

            Assert.NotNull(range.Result.ReachableRange.Boundary);
        }