コード例 #1
0
  public PointOfInterest get(double latitude, double longitude, int accuracy) {
    PointOfInterest p = null;

    for (PointOfInterest poi : this.container) {
      if (poi.getId() > 0
          && poi.isMonitored()
          && poi.contains(latitude, longitude, accuracy)
          && (p == null || p.getRadius() > poi.getRadius())) {
        p = poi;
      }
    }

    return p;
  }