Class StationsManager
java.lang.Object
de.kaffeemitkoffein.tinyweatherforecastgermany.StationsManager
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionStationsManager(Context context) StationsManager(Context context, ArrayList<Weather.WeatherLocation> stations) -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAltitude(int position) getDescription(int position) getFromName(String name) doublegetLatitude(int position) getLocationFromDescription(String description) doublegetLongitude(int position) getName(int position) getPositionFromDescription(String description) getPositionFromDescription(String description, boolean lenient) getPositionFromName(String name) intgetStations(String[] ignoreNames) getStationsInPolygon(Polygon polygon) voidstatic ArrayList<Weather.WeatherLocation> readStations(Context context) static ArrayList<Weather.WeatherLocation> sortStationsByDistance(ArrayList<Weather.WeatherLocation> stations, Location targetLocation) static booleanStringArrayContains(String s, String[] strings)
-
Field Details
-
stations
-
loaded
public boolean loaded
-
-
Constructor Details
-
StationsManager
public StationsManager(Context context) -
StationsManager
-
-
Method Details
-
readStations
-
readStations
public void readStations() -
getStations
-
StringArrayContains
-
getStations
-
getName
-
getDescription
-
getLongitude
public double getLongitude(int position) -
getLatitude
public double getLatitude(int position) -
getAltitude
public double getAltitude(int position) -
getStationCount
public int getStationCount() -
getPositionFromDescription
-
getPositionFromDescription
-
getPositionFromName
-
getFromName
-
getLocationFromDescription
-
getStationsInPolygon
-
sortStationsByDistance
public static ArrayList<Weather.WeatherLocation> sortStationsByDistance(ArrayList<Weather.WeatherLocation> stations, Location targetLocation)
-