Exemplo n.º 1
0
        public static async Task<RouteLocationToPoi> GetLocationToPoiRoute(string buid, string puid, string floor_number, string lat, string lon)
        {
            RequestLocationToPoi r = new RequestLocationToPoi();
            r.access_token = "api_tester";
            r.buid = buid;
            r.pois_to = puid;
            r.floor_number = floor_number;
            r.coordinates_lat = lat;
            r.coordinates_lon = lon;
            var response = await AnyPlaceClient.PostAsJsonAsync(new Uri(ServerBaseUri, "anyplace/navigation/route_xy"), r);

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

            return buildings;
        }
Exemplo n.º 2
0
        public static async Task <RouteLocationToPoi> GetLocationToPoiRoute(string buid, string puid, string floor_number, string lat, string lon)
        {
            RequestLocationToPoi r = new RequestLocationToPoi();

            r.access_token    = "api_tester";
            r.buid            = buid;
            r.pois_to         = puid;
            r.floor_number    = floor_number;
            r.coordinates_lat = lat;
            r.coordinates_lon = lon;
            var response = await AnyPlaceClient.PostAsJsonAsync(new Uri(ServerBaseUri, "anyplace/navigation/route_xy"), r);

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

            IsDirty = true;

            return(buildings);
        }