public class WeatherService
extends java.lang.Object
Constructor and Description |
---|
WeatherService() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getUrlFromLocation(double[] location,
android.content.Context context) |
static WeatherStatus |
getWeatherStatus(android.location.Location location,
android.content.Context context)
Retrieves the weather status based on the weather where the person is located:
- Uses the GPS to figure out where the person is
- Gets the weather from the location
- Retrieves a weather status from this
|
public static WeatherStatus getWeatherStatus(android.location.Location location, android.content.Context context)
location
- a location retrieved from the GPSpublic static java.lang.String getUrlFromLocation(double[] location, android.content.Context context)
location
-