Class PlaceParameter
- java.lang.Object
-
- com.aerisweather.aeris.communication.parameter.Parameter
-
- com.aerisweather.aeris.communication.parameter.PlaceParameter
-
public class PlaceParameter extends Parameter
Defines the location to query data for. Refer to the list of supported place value formats.
-
-
Constructor Summary
Constructors Constructor Description PlaceParameter()Query for a place by using the IP address for the location.PlaceParameter(double lat, double lon)Query for a place with latitude and longitude coordinatesPlaceParameter(double topLat, double leftLon, double botLat, double rightLon)Query for a place with latitude and longitude coordinates to use with aWITHIN.PlaceParameter(int fipsCode)Query for a place with a fips code.PlaceParameter(android.content.Context context)Constructs a Place parameter and uses the phones location, if available.PlaceParameter(AerisLocation... locs)PlaceParameter(String value)Query for a place with a value.PlaceParameter(List<AerisLocation> locs)
-
-
-
Constructor Detail
-
PlaceParameter
public PlaceParameter(String value)
Query for a place with a value. There are many supported values. All spaces are replaces with + signs automatically
City state: seattle,wa | seattle,washington | new+york,new+york
City, state, country: seattle,wa,us | toronto,on,ca
City Country: paris,fr | paris,france
Zip code/postal code: 98109 | 55415 | M3C4H9
3 Char IATA Airport Codes: MSP | ROA
County/parish king+county,wa State-county id: WAC033
NOAA public weather zone: MNZ029- Parameters:
value- PlaceParameter obj
-
PlaceParameter
public PlaceParameter(double lat, double lon)Query for a place with latitude and longitude coordinates- Parameters:
lat- Latitude to uselon- longitude to use
-
PlaceParameter
public PlaceParameter(double topLat, double leftLon, double botLat, double rightLon)Query for a place with latitude and longitude coordinates to use with aWITHIN.- Parameters:
topLat- top latitude coordinate to use in the box.leftLon- left longitude coordinate to use.botLat- bottom latitude coordinate to use.rightLon- right longitude coordinate to use
-
PlaceParameter
public PlaceParameter()
Query for a place by using the IP address for the location.
-
PlaceParameter
public PlaceParameter(android.content.Context context)
Constructs a Place parameter and uses the phones location, if available. If not, will query location based on the IP.- Parameters:
context- PlaceParameter obj
-
PlaceParameter
public PlaceParameter(AerisLocation... locs)
-
PlaceParameter
public PlaceParameter(List<AerisLocation> locs)
-
PlaceParameter
public PlaceParameter(int fipsCode)
Query for a place with a fips code.- Parameters:
fipsCode- int
-
-