Class FccGetProximityCallsigns
java.lang.Object
io.github.dsheirer.rrapi.request.RequestBody
io.github.dsheirer.rrapi.request.FccGetProximityCallsigns
Get FCC callsigns in proximity to a reference point and distance
Note: the web service interface supports range units of measure: m=miles, k=kilometers and n=nautical miles. This
class uses kilometers by default.
The ICD requests that a max range of 3 miles (4.82 km) be used. The constructor enforces this value.
-
Constructor Summary
ConstructorsConstructorDescriptionFccGetProximityCallsigns(AuthorizationInformation authorizationInformation, double latitude, double longitude, double range) Constructs the request -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestEnvelopecreate(AuthorizationInformation authorizationInformation, double latitude, double longitude, double range) Creates a request envelope using the auth info and the radio service codedoubleLatitudedoubleLongitudedoublegetRange()RangegetUnit()UnitvoidsetLatitude(double latitude) Sets the latitudevoidsetLongitude(double longitude) Sets the longitudevoidsetRange(double range) Sets the rangevoidSets the unitMethods inherited from class RequestBody
create, getAuthorizationInformation, setAuthorizationInformation
-
Constructor Details
-
FccGetProximityCallsigns
public FccGetProximityCallsigns(AuthorizationInformation authorizationInformation, double latitude, double longitude, double range) Constructs the request- Parameters:
authorizationInformation- for the userlatitude- for the search locationlongitude- for the search locationrange- for the search distance in kilometers (0 - 4.82803 km)
-
-
Method Details
-
getLatitude
public double getLatitude()Latitude- Returns:
- latitude
-
setLatitude
public void setLatitude(double latitude) Sets the latitude- Parameters:
latitude- to set
-
getLongitude
public double getLongitude()Longitude- Returns:
- longitude
-
setLongitude
public void setLongitude(double longitude) Sets the longitude- Parameters:
longitude- to set
-
getRange
public double getRange()Range- Returns:
- range
-
setRange
public void setRange(double range) Sets the range- Parameters:
range- to set
-
getUnit
-
setUnit
-
create
public static RequestEnvelope create(AuthorizationInformation authorizationInformation, double latitude, double longitude, double range) Creates a request envelope using the auth info and the radio service code- Parameters:
authorizationInformation- credentialslatitude- of search locationlongitude- of search locationrange- from search location- Returns:
- request envelope
-