@hastehaul/common 2.15.0 → 2.16.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -96,7 +96,8 @@ function isPointInGeoJSON(latLng, fileName) {
96
96
  const geoJsonData = yield loadAsset(fileName);
97
97
  cachedGeoJsonData = JSON.parse(geoJsonData);
98
98
  }
99
- const points = (0, helpers_1.point)([latLng[0], latLng[1]]);
99
+ // !NB points take the form longitude, latitude
100
+ const points = (0, helpers_1.point)([latLng[1], latLng[0]]);
100
101
  for (const feature of cachedGeoJsonData.features) {
101
102
  const { geometry } = feature;
102
103
  if (geometry.type === 'Polygon') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.15.0",
3
+ "version": "2.16.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",