class AirLocation extends Location {

    public AirLocation() {
    }

    public AirLocation(long id, double latitude, double longitude) {
        super(id, latitude, longitude);
    }

    @Override
    public long getDistanceTo(Location location) {<FILL_FUNCTION_BODY>}

}

        double distance = getAirDistanceDoubleTo(location);
        // Multiplied by 1000 to avoid floating point arithmetic rounding errors
        return (long) (distance * 1000.0 + 0.5);
    
<methods>public double getAirDistanceDoubleTo(org.optaplanner.examples.tsp.domain.location.Location) ,public double getAngle(org.optaplanner.examples.tsp.domain.location.Location) ,public abstract long getDistanceTo(org.optaplanner.examples.tsp.domain.location.Location) ,public double getLatitude() ,public double getLongitude() ,public java.lang.String getName() ,public void setLatitude(double) ,public void setLongitude(double) ,public void setName(java.lang.String) ,public java.lang.String toString() <variables>protected double latitude,protected double longitude,protected java.lang.String name