UNPKG

@configurator/ravendb

Version:
17 lines 635 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PointField = void 0; const DynamicSpatialField_1 = require("./DynamicSpatialField"); class PointField extends DynamicSpatialField_1.DynamicSpatialField { constructor(latitude, longitude) { super(); this.latitude = latitude; this.longitude = longitude; } toField(ensureValidFieldName) { return "spatial.point(" + ensureValidFieldName(this.latitude, false) + ", " + ensureValidFieldName(this.longitude, false) + ")"; } } exports.PointField = PointField; //# sourceMappingURL=PointField.js.map