bruce-models 3.4.2 → 3.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3880,9 +3880,17 @@
3880
3880
  }
3881
3881
  };
3882
3882
  entities.forEach(entity => {
3883
- const { ID } = entity.Bruce;
3884
- const { geometry } = entity;
3885
- processGeometry(geometry, ID);
3883
+ var _a, _b, _c;
3884
+ if (!((_a = entity === null || entity === void 0 ? void 0 : entity.Bruce) === null || _a === void 0 ? void 0 : _a.ID)) {
3885
+ return;
3886
+ }
3887
+ let geometry = entity.geometry;
3888
+ if (!geometry && (((_b = entity.location) === null || _b === void 0 ? void 0 : _b.longitude) && ((_c = entity.location) === null || _c === void 0 ? void 0 : _c.latitude))) {
3889
+ geometry = {
3890
+ Point: `${entity.location.longitude},${entity.location.latitude}` + (entity.location.altitude != null ? `,${entity.location.altitude}` : ""),
3891
+ };
3892
+ }
3893
+ processGeometry(geometry, entity.Bruce.ID);
3886
3894
  });
3887
3895
  return {
3888
3896
  type: 'FeatureCollection',
@@ -10517,7 +10525,7 @@
10517
10525
  DataSource.GetList = GetList;
10518
10526
  })(exports.DataSource || (exports.DataSource = {}));
10519
10527
 
10520
- const VERSION = "3.4.2";
10528
+ const VERSION = "3.4.3";
10521
10529
 
10522
10530
  exports.VERSION = VERSION;
10523
10531
  exports.AbstractApi = AbstractApi;