refactor: extract inline type definitions

This commit is contained in:
Michel Jonathan Schmitz
2019-02-07 10:56:18 +01:00
parent 06f8e1f436
commit 01a1d40f11
13 changed files with 335 additions and 122 deletions

View File

@@ -12,8 +12,8 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {Point, Polygon} from 'geojson';
import {SCThing} from '../Thing';
import {SCGeoInformation} from '../types/GeoInformation';
import {SCPostalAddress} from '../types/PostalAddress';
/**
@@ -26,15 +26,12 @@ export interface SCPlaceWithoutReferences extends SCThing {
address?: SCPostalAddress;
/**
* Position/shape of the place
* Positional information of the place
*
* !!! BEWARE !!!
* Can not be a GeometryCollection because ElasticSearch does not allow distance filtering/sorting on other types
*/
geo: {
point: Point,
polygon?: Polygon,
};
geo: SCGeoInformation;
/**
* Opening hours of the place