Beispiel #1
0
        public static async Task <RoutePoiToPoi> GetPoiToPoiRoute(string poi_from, string poi_to)
        {
            RequestPoiToPoi r = new RequestPoiToPoi();

            r.access_token = "api_tester";
            r.pois_from    = poi_from;
            r.pois_to      = poi_to;

            var response = await AnyPlaceClient.PostAsJsonAsync(new Uri(ServerBaseUri, "anyplace/navigation/route"), r);

            var buildings = await response.Content.ReadAsAsync <RoutePoiToPoi>();

            IsDirty = true;

            return(buildings);
        }
        public static async Task<RoutePoiToPoi> GetPoiToPoiRoute(string poi_from,string poi_to)
        {
            RequestPoiToPoi r = new RequestPoiToPoi();
            r.access_token = "api_tester";
            r.pois_from = poi_from;
            r.pois_to = poi_to;

            var response = await AnyPlaceClient.PostAsJsonAsync(new Uri(ServerBaseUri, "anyplace/navigation/route"), r);

            var buildings = await response.Content.ReadAsAsync<RoutePoiToPoi>();
            IsDirty = true;

            return buildings;
        }