atmosx-nwws-parser 1.0.20311 → 1.0.20312

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.
@@ -1399,7 +1399,7 @@ var UGCParser = class {
1399
1399
  if (located != void 0) {
1400
1400
  let geometry = JSON.parse(located.geometry);
1401
1401
  if ((geometry == null ? void 0 : geometry.type) === "Polygon") {
1402
- coordinates.push(...geometry.coordinates[0].map((coord) => [coord[0], coord[1]]));
1402
+ coordinates.push(...geometry.coordinates[0].map((coord) => [coord[1], coord[0]]));
1403
1403
  break;
1404
1404
  }
1405
1405
  }
@@ -1799,7 +1799,7 @@ var APIAlerts = class {
1799
1799
  type: ((_fa = feature == null ? void 0 : feature.geometry) == null ? void 0 : _fa.type) || "Polygon",
1800
1800
  coordinates: (_ia = (_ha = (_ga = feature == null ? void 0 : feature.geometry) == null ? void 0 : _ga.coordinates) == null ? void 0 : _ha[0]) == null ? void 0 : _ia.map((coord) => {
1801
1801
  const [lat, lon] = Array.isArray(coord) ? coord : [0, 0];
1802
- return [lat, lon];
1802
+ return [lon, lat];
1803
1803
  })
1804
1804
  } : null
1805
1805
  }
@@ -1358,7 +1358,7 @@ var UGCParser = class {
1358
1358
  if (located != void 0) {
1359
1359
  let geometry = JSON.parse(located.geometry);
1360
1360
  if ((geometry == null ? void 0 : geometry.type) === "Polygon") {
1361
- coordinates.push(...geometry.coordinates[0].map((coord) => [coord[0], coord[1]]));
1361
+ coordinates.push(...geometry.coordinates[0].map((coord) => [coord[1], coord[0]]));
1362
1362
  break;
1363
1363
  }
1364
1364
  }
@@ -1758,7 +1758,7 @@ var APIAlerts = class {
1758
1758
  type: ((_fa = feature == null ? void 0 : feature.geometry) == null ? void 0 : _fa.type) || "Polygon",
1759
1759
  coordinates: (_ia = (_ha = (_ga = feature == null ? void 0 : feature.geometry) == null ? void 0 : _ga.coordinates) == null ? void 0 : _ha[0]) == null ? void 0 : _ia.map((coord) => {
1760
1760
  const [lat, lon] = Array.isArray(coord) ? coord : [0, 0];
1761
- return [lat, lon];
1761
+ return [lon, lat];
1762
1762
  })
1763
1763
  } : null
1764
1764
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "atmosx-nwws-parser",
3
- "version": "1.0.20311",
3
+ "version": "1.0.20312",
4
4
  "description": "NOAA Weather Wire Parser - Built for standalone and Project AtmosphericX Integration.",
5
5
  "main": "dist/cjs/index.cjs",
6
6
  "module": "dist/esm/index.mjs",
@@ -87,7 +87,7 @@ export class APIAlerts {
87
87
  type: feature?.geometry?.type || 'Polygon',
88
88
  coordinates: feature?.geometry?.coordinates?.[0]?.map((coord: number) => {
89
89
  const [lat, lon] = Array.isArray(coord) ? coord : [0, 0];
90
- return [lat, lon];
90
+ return [lon, lat];
91
91
  })
92
92
  } : null
93
93
  }
@@ -105,7 +105,7 @@ export class UGCParser {
105
105
  if (located != undefined) {
106
106
  let geometry = JSON.parse(located.geometry);
107
107
  if (geometry?.type === 'Polygon') {
108
- coordinates.push(...geometry.coordinates[0].map((coord: [number, number]) => [coord[0], coord[1]]));
108
+ coordinates.push(...geometry.coordinates[0].map((coord: [number, number]) => [coord[1], coord[0]]));
109
109
  break;
110
110
  }
111
111
  }