/// <summary> /// Gets Forecast by coordinates. /// </summary> /// <param name="coordinates">The coordinates.</param> /// <param name="daily"> if set to <c>true</c> [daily].</param> /// <param name="metric"> The metric.</param> /// <param name="language"> The language.</param> /// <param name="count"> The count.</param> /// <returns> /// Task {ForecastResponse}. /// </returns> /// <seealso cref="M:OpenWeatherMap.IForecastClient.GetByCoordinates(Coordinates,bool,MetricSystem,OpenWeatherMapLanguage,int?)"/> public Task<ForecastResponse> GetByCoordinates(Coordinates coordinates, bool daily = false, MetricSystem metric = MetricSystem.Internal, OpenWeatherMapLanguage language = OpenWeatherMapLanguage.EN, int? count = null) { if (daily) { this.Request.Uri = this.Request.Uri.AddSegment("daily"); } return this.GetByCoordinates<ForecastResponse>(coordinates, metric, language, count, null); }
/// <summary> /// Gets Current weather by coordinates. /// </summary> /// <param name="coordinates">The coordinates.</param> /// <param name="metric"> The metric system.</param> /// <param name="language"> The language.</param> /// <returns> /// Task {CurrentWeatherResponse}. /// </returns> /// <seealso cref="M:OpenWeatherMap.ICurrentWeatherClient.GetByCoordinates(Coordinates,MetricSystem,OpenWeatherMapLanguage)"/> public Task<CurrentWeatherResponse> GetByCoordinates(Coordinates coordinates, MetricSystem metric = MetricSystem.Internal, OpenWeatherMapLanguage language = OpenWeatherMapLanguage.EN) { return this.GetByCoordinates<CurrentWeatherResponse>(coordinates, metric, language, null, null); }
/// <summary> /// Search by coordinates. /// </summary> /// <param name="coordinates">The coordinates.</param> /// <param name="metric"> The metric.</param> /// <param name="language"> The language.</param> /// <param name="count"> The count.</param> /// <param name="accuracy"> The accuracy.</param> /// <returns> /// Task {SearchResponse}. /// </returns> /// <seealso cref="M:OpenWeatherMap.ISearchClient.GetByCoordinates(Coordinates,MetricSystem,OpenWeatherMapLanguage,int?,Accuracy?)"/> public Task<SearchResponse> GetByCoordinates(Coordinates coordinates, MetricSystem metric = MetricSystem.Internal, OpenWeatherMapLanguage language = OpenWeatherMapLanguage.EN, int? count = null, Accuracy? accuracy = null) { return this.GetByCoordinates<SearchResponse>(coordinates, metric, language, count, accuracy); }