Class FccGetProximityCallsigns

java.lang.Object
io.github.dsheirer.rrapi.request.RequestBody
io.github.dsheirer.rrapi.request.FccGetProximityCallsigns

public class FccGetProximityCallsigns extends RequestBody
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 Details

    • FccGetProximityCallsigns

      public FccGetProximityCallsigns(AuthorizationInformation authorizationInformation, double latitude, double longitude, double range)
      Constructs the request
      Parameters:
      authorizationInformation - for the user
      latitude - for the search location
      longitude - for the search location
      range - 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

      public String getUnit()
      Unit
      Returns:
      unit
    • setUnit

      public void setUnit(String unit)
      Sets the unit
      Parameters:
      unit - to set
    • 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 - credentials
      latitude - of search location
      longitude - of search location
      range - from search location
      Returns:
      request envelope