cuba_weather_dart 1.3.3 cuba_weather_dart: ^1.3.3 copied to clipboard
Dart client for www.redcuba.cu weather API. Given a location in Cuba, if it is within the permitted locations, meteorological data on the location is obtained.
import 'dart:io';
import 'package:cuba_weather_dart/cuba_weather_dart.dart';
void main() {
print('Insert location:');
var location = stdin.readLineSync();
var cubaWeather = CubaWeather();
cubaWeather.get(location, suggestion: true).then((weather) {
print(weather);
});
}