/*
 * Copyright (C) 2025  Tim Zimmermann <tim@aglais.org>
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.aglais.zms.ui.map;

import org.jxmapviewer.viewer.DefaultWaypoint;
import org.jxmapviewer.viewer.GeoPosition;

/**
 * A specialized waypoint that includes a radius value, typically used to represent
 * areas of interest or coverage on a map. The radius is specified in meters.
 */
public class RadiusWaypoint extends DefaultWaypoint {

    private final int radius;

    /**
     * Constructs a new RadiusWaypoint with the specified geographic position and radius.
     *
     * @param pos    The geographic position of the waypoint (latitude/longitude)
     * @param radius The radius of the area around the waypoint in meters
     */
    public RadiusWaypoint(GeoPosition pos, int radius) {
        super(pos);
        this.radius = radius;
    }

    /**
     * Returns the radius associated with this waypoint.
     *
     * @return The radius in meters
     */
    public int getRadius() {
        return radius;
    }
}