Subversion Repositories splitter

Rev

Rev 420 | Blame | Compare with Previous | Last modification | View Log | RSS feed

/*
 * Copyright (c) 2012, Gerd Petermann
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * 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
 * General Public License for more details.
 */


package uk.me.parabola.splitter;

/**
 *
 * @author Gerd Petermann
 *
 */

public interface AreaIndex{
        /**
         * @return the bounding box of the areas.
         */

        public Area getBounds();
        /**
         * Return a set of area candidates for this node.
         * @param n the node
         * @return a reference to a static AreaGridResult instance
         */

        public AreaGridResult get (final Node n);

        /**
         * Return a set of area candidates for these coordinates
         * @param lat the latitude value in map units
         * @param lon the longitude value in map units
         * @return a reference to a static AreaGridResult instance
         */

        public AreaGridResult get (int lat, int lon);

}