Beispiel #1
0
        public static async Task <string> GetAlmanacData(DateTime?timeOfAlmanac = null)
        {
            var uri = Networking.GetFullUri(ServiceUris.NavigationAlmanacDataUri);

            uri = timeOfAlmanac == null ? uri : Networking.AppendDateToUri(uri, timeOfAlmanac);
            return(await Networking.HttpGetCall(uri));
        }
        /// <summary>
        /// Gets Czml data representing global GPS acuracy for a given date
        /// </summary>
        /// <param name="date">the date the global Gps accuracy is desired</param>
        /// <param name="animated">When true, the results will animate for the 24 hour period</param>
        /// <param name="useSmallGrid">When true, the data is plotted on a smaller grid.</param>
        /// <returns>A string of Czml data</returns>
        public static async Task <string> GetGpsGlobalAccuracyCzml(DateTime date,
                                                                   bool animated     = false,
                                                                   bool useSmallGrid = false)
        {
            var uri = Networking.GetFullUri(ServiceUris.VehiclePathCzmlGpsUri);

            uri = Networking.AppendDateToUri(uri, date);

            uri = new Uri(uri, $"&animated={animated}");
            uri = new Uri(uri, $"&useSmallGrid={useSmallGrid}");

            return(await Networking.HttpGetCall(uri));
        }