@mailwoman/spatial 5.8.0 → 5.10.0

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.
Files changed (48) hide show
  1. package/bbox.ts +3 -3
  2. package/coordinate-formats.test.ts +1 -1
  3. package/countries/codes.ts +255 -252
  4. package/countries/index.ts +2 -2
  5. package/feature.ts +1 -1
  6. package/geometries/collection.ts +4 -4
  7. package/geometries/index.ts +4 -4
  8. package/geometries/line-string.ts +2 -2
  9. package/geometries/point.ts +4 -4
  10. package/geometries/polygon.test.ts +1 -1
  11. package/geometries/polygon.ts +21 -19
  12. package/google/index.ts +1 -1
  13. package/h3/index.ts +1 -1
  14. package/index.ts +11 -11
  15. package/objects.ts +1 -1
  16. package/out/bbox.d.ts +2 -2
  17. package/out/countries/codes.d.ts +252 -251
  18. package/out/countries/codes.d.ts.map +1 -1
  19. package/out/countries/codes.js +251 -252
  20. package/out/countries/codes.js.map +1 -1
  21. package/out/countries/index.d.ts +2 -2
  22. package/out/feature.d.ts +1 -1
  23. package/out/geometries/collection.d.ts +4 -4
  24. package/out/geometries/index.d.ts +4 -4
  25. package/out/geometries/line-string.d.ts +2 -2
  26. package/out/geometries/point.d.ts +5 -5
  27. package/out/geometries/polygon.d.ts +20 -19
  28. package/out/geometries/polygon.d.ts.map +1 -1
  29. package/out/geometries/polygon.js +17 -18
  30. package/out/geometries/polygon.js.map +1 -1
  31. package/out/google/index.d.ts +1 -1
  32. package/out/h3/index.d.ts +1 -1
  33. package/out/index.d.ts +11 -11
  34. package/out/objects.d.ts +1 -1
  35. package/out/projection.d.ts +5 -4
  36. package/out/projection.d.ts.map +1 -1
  37. package/out/projection.js +4 -5
  38. package/out/projection.js.map +1 -1
  39. package/out/regions/index.d.ts +2 -2
  40. package/out/sdk/index.d.ts +1 -1
  41. package/out/tsconfig.tsbuildinfo +1 -1
  42. package/package.json +23 -5
  43. package/projection.ts +6 -4
  44. package/regions/codes.ts +1 -1
  45. package/regions/index.ts +2 -2
  46. package/sdk/index.ts +1 -1
  47. package/sdk/well-known-text.test.ts +1 -1
  48. package/tsconfig.json +2 -1
@@ -5,10 +5,10 @@
5
5
  *
6
6
  * GeoJSON Geometry Collection
7
7
  */
8
- import type { GeoObjectLiteral } from "../objects.js";
9
- import type { LineStringLiteral, MultiLineStringLiteral } from "./line-string.js";
10
- import type { MultiPointLiteral, PointLiteral } from "./point.js";
11
- import type { MultiPolygonLiteral, PolygonLiteral } from "./polygon.js";
8
+ import type { GeoObjectLiteral } from "../objects.ts";
9
+ import type { LineStringLiteral, MultiLineStringLiteral } from "./line-string.ts";
10
+ import type { MultiPointLiteral, PointLiteral } from "./point.ts";
11
+ import type { MultiPolygonLiteral, PolygonLiteral } from "./polygon.ts";
12
12
  /**
13
13
  * Union of the GeoJSON geometry types.
14
14
  */
@@ -5,8 +5,8 @@
5
5
  *
6
6
  * GeoJSON Geometry Entry Point
7
7
  */
8
- export * from "./collection.js";
9
- export * from "./line-string.js";
10
- export * from "./point.js";
11
- export * from "./polygon.js";
8
+ export * from "./collection.ts";
9
+ export * from "./line-string.ts";
10
+ export * from "./point.ts";
11
+ export * from "./polygon.ts";
12
12
  //# sourceMappingURL=index.d.ts.map
@@ -5,8 +5,8 @@
5
5
  *
6
6
  * GeoJSON Line String
7
7
  */
8
- import type { GeoObjectLiteral } from "../objects.js";
9
- import type { Coordinates2D, Coordinates3D } from "../position.js";
8
+ import type { GeoObjectLiteral } from "../objects.ts";
9
+ import type { Coordinates2D, Coordinates3D } from "../position.ts";
10
10
  /**
11
11
  * An array of positions forming a line, such as a road or a path.
12
12
  */
@@ -5,10 +5,10 @@
5
5
  */
6
6
  import type google from "@googlemaps/google-maps-services-js";
7
7
  import type { LatLng, LatLngLiteral } from "@googlemaps/google-maps-services-js";
8
- import { type BBox2DLiteral, type BBox3DLiteral, GeoBoundingBox } from "../bbox.js";
9
- import { type H3Cell } from "../h3/index.js";
10
- import { type GeoObjectLiteral } from "../objects.js";
11
- import { type InternalPointCoordinates, type Coordinates2D as Point2DCoordinates, type Coordinates3D as Point3DCoordinates } from "../position.js";
8
+ import { type BBox2DLiteral, type BBox3DLiteral, GeoBoundingBox } from "../bbox.ts";
9
+ import { type H3Cell } from "../h3/index.ts";
10
+ import { type GeoObjectLiteral } from "../objects.ts";
11
+ import { type InternalPointCoordinates, type Coordinates2D as Point2DCoordinates, type Coordinates3D as Point3DCoordinates } from "../position.ts";
12
12
  /**
13
13
  * A JSON-serializeable single point geometry, such as a specific location, address, or longitude, latitude pair.
14
14
  *
@@ -175,7 +175,7 @@ export declare class GeoPoint implements PointLiteral {
175
175
  /**
176
176
  * Converts the GeoPoint to a H3 short cell address.
177
177
  */
178
- toH3ShortCell(resolution?: number): import("../h3/index.js").H3CellShort;
178
+ toH3ShortCell(resolution?: number): import("../h3/index.ts").H3CellShort;
179
179
  toString(): string;
180
180
  [Symbol.iterator](): Iterator<number>;
181
181
  }
@@ -3,8 +3,8 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
- import type { GeoObjectLiteral } from "../objects.js";
7
- import type { LineStringPath } from "./line-string.js";
6
+ import type { GeoObjectLiteral } from "../objects.ts";
7
+ import type { LineStringPath } from "./line-string.ts";
8
8
  /**
9
9
  * An array of positions forming a closed shape, such as a country or a lake.
10
10
  *
@@ -129,23 +129,24 @@ export declare function polygonToOSMFilter(input: PolygonLiteral): string;
129
129
  *
130
130
  * @category OSM
131
131
  */
132
- export declare enum OSMNodeTag {
133
- HouseNumber = "addr:housenumber",
134
- PostCode = "addr:postcode",
135
- Street = "addr:street",
136
- State = "addr:state",
137
- City = "addr:city",
138
- Website = "website",
139
- Email = "email",
140
- Phone = "phone",
141
- Shop = "shop",
142
- Brand = "brand",
143
- Cuisine = "cuisine",
144
- Name = "name",
145
- Healthcare = "healthcare",
146
- Office = "office",
147
- Amenity = "amenity"
148
- }
132
+ export declare const OSMNodeTag: {
133
+ readonly HouseNumber: "addr:housenumber";
134
+ readonly PostCode: "addr:postcode";
135
+ readonly Street: "addr:street";
136
+ readonly State: "addr:state";
137
+ readonly City: "addr:city";
138
+ readonly Website: "website";
139
+ readonly Email: "email";
140
+ readonly Phone: "phone";
141
+ readonly Shop: "shop";
142
+ readonly Brand: "brand";
143
+ readonly Cuisine: "cuisine";
144
+ readonly Name: "name";
145
+ readonly Healthcare: "healthcare";
146
+ readonly Office: "office";
147
+ readonly Amenity: "amenity";
148
+ };
149
+ export type OSMNodeTag = (typeof OSMNodeTag)[keyof typeof OSMNodeTag];
149
150
  export declare const ForbiddenResidentialOSMNodeTags: ReadonlySet<OSMNodeTag>;
150
151
  export type OSMNodeTagRecord = Record<OSMNodeTag, string | undefined>;
151
152
  export interface OSMOverpassElement {
@@ -1 +1 @@
1
- {"version":3,"file":"polygon.d.ts","sourceRoot":"","sources":["../../geometries/polygon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEtD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B;;;OAGG;IACH,YAAY,EAAE,cAAc;CAC5B,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B;;;OAGG;IACH,YAAY,EAAE,cAAc;IAC5B;;OAEG;IACH,GAAG,aAAa,EAAE,cAAc,EAAE;CAClC,CAAA;AAED;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,iBAAiB,CAAA;AAE9D;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,WAAW,GAAG,gBAAgB,CAAE,SAAQ,gBAAgB;IACjG;;OAEG;IACH,IAAI,EAAE,SAAS,CAAA;IACf;;;;;;OAMG;IACH,WAAW,EAAE,CAAC,CAAA;CACd;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 -38,24 +38,23 @@ export function polygonToOSMFilter(input) {
38
38
  *
39
39
  * @category OSM
40
40
  */
41
- export var OSMNodeTag;
42
- (function (OSMNodeTag) {
43
- OSMNodeTag["HouseNumber"] = "addr:housenumber";
44
- OSMNodeTag["PostCode"] = "addr:postcode";
45
- OSMNodeTag["Street"] = "addr:street";
46
- OSMNodeTag["State"] = "addr:state";
47
- OSMNodeTag["City"] = "addr:city";
48
- OSMNodeTag["Website"] = "website";
49
- OSMNodeTag["Email"] = "email";
50
- OSMNodeTag["Phone"] = "phone";
51
- OSMNodeTag["Shop"] = "shop";
52
- OSMNodeTag["Brand"] = "brand";
53
- OSMNodeTag["Cuisine"] = "cuisine";
54
- OSMNodeTag["Name"] = "name";
55
- OSMNodeTag["Healthcare"] = "healthcare";
56
- OSMNodeTag["Office"] = "office";
57
- OSMNodeTag["Amenity"] = "amenity";
58
- })(OSMNodeTag || (OSMNodeTag = {}));
41
+ export const OSMNodeTag = {
42
+ HouseNumber: "addr:housenumber",
43
+ PostCode: "addr:postcode",
44
+ Street: "addr:street",
45
+ State: "addr:state",
46
+ City: "addr:city",
47
+ Website: "website",
48
+ Email: "email",
49
+ Phone: "phone",
50
+ Shop: "shop",
51
+ Brand: "brand",
52
+ Cuisine: "cuisine",
53
+ Name: "name",
54
+ Healthcare: "healthcare",
55
+ Office: "office",
56
+ Amenity: "amenity",
57
+ };
59
58
  export const ForbiddenResidentialOSMNodeTags = new Set([
60
59
  OSMNodeTag.Shop,
61
60
  OSMNodeTag.Brand,
@@ -1 +1 @@
1
- {"version":3,"file":"polygon.js","sourceRoot":"","sources":["../../geometries/polygon.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAqGtD;;GAEG;AACH,MAAM,UAAU,gBAAgB,CAAsC,KAAc;IACnF,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,KAAK,CAAA;IAE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,CAAA;QAEhH,OAAO,QAAQ,CAAA;IAChB,CAAC,CAAC;SACD,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAsC,CAAC;SACvE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC;SAC7B,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QAChB,MAAM,aAAa,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,OAAO,CAAC,CAAA;IAChE,CAAC,CAAC,CAAA;AACJ,CAAC"}
@@ -3,5 +3,5 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
- export * from "./place-id.js";
6
+ export * from "./place-id.ts";
7
7
  //# sourceMappingURL=index.d.ts.map
package/out/h3/index.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
6
  import type { Tagged } from "type-fest";
7
- import { GeoPoint, type PointLiteral } from "../geometries/point.js";
7
+ import { GeoPoint, type PointLiteral } from "../geometries/point.ts";
8
8
  /**
9
9
  * A H3 cell index, full 64 bits.
10
10
  *
package/out/index.d.ts CHANGED
@@ -3,15 +3,15 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
- export * from "./bbox.js";
7
- export * from "./coordinate-formats.js";
8
- export * from "./countries/index.js";
9
- export * from "./feature.js";
10
- export * from "./geometries/index.js";
11
- export * from "./google/index.js";
12
- export * from "./h3/index.js";
13
- export * from "./objects.js";
14
- export * from "./position.js";
15
- export * from "./projection.js";
16
- export * from "./regions/index.js";
6
+ export * from "./bbox.ts";
7
+ export * from "./coordinate-formats.ts";
8
+ export * from "./countries/index.ts";
9
+ export * from "./feature.ts";
10
+ export * from "./geometries/index.ts";
11
+ export * from "./google/index.ts";
12
+ export * from "./h3/index.ts";
13
+ export * from "./objects.ts";
14
+ export * from "./position.ts";
15
+ export * from "./projection.ts";
16
+ export * from "./regions/index.ts";
17
17
  //# sourceMappingURL=index.d.ts.map
package/out/objects.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
- import { type BBox2DLiteral, type BBox3DLiteral } from "./bbox.js";
6
+ import { type BBox2DLiteral, type BBox3DLiteral } from "./bbox.ts";
7
7
  /**
8
8
  * GeoJSON object types.
9
9
  */
@@ -8,16 +8,17 @@
8
8
  *
9
9
  * @category Geo
10
10
  */
11
- export declare enum CoordinateProjection {
11
+ export declare const CoordinateProjection: {
12
12
  /**
13
13
  * Coordinate system used in Google Earth and GSP systems.
14
14
  *
15
15
  * It represents Earth as a three-dimensional ellipsoid.
16
16
  */
17
- WGS84 = "4326",
17
+ readonly WGS84: "4326";
18
18
  /**
19
19
  * North American Datum 1983, a geodetic reference system used in the TIGER/Line data.
20
20
  */
21
- NAD83 = "4269"
22
- }
21
+ readonly NAD83: "4269";
22
+ };
23
+ export type CoordinateProjection = (typeof CoordinateProjection)[keyof typeof CoordinateProjection];
23
24
  //# sourceMappingURL=projection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../projection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,oBAAY,oBAAoB;IAC/B;;;;OAIG;IACH,KAAK,SAAS;IACd;;OAEG;IACH,KAAK,SAAS;CACd"}
1
+ {"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../projection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,eAAO,MAAM,oBAAoB;IAChC;;;;OAIG;;IAEH;;OAEG;;CAEM,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAA"}
package/out/projection.js CHANGED
@@ -8,17 +8,16 @@
8
8
  *
9
9
  * @category Geo
10
10
  */
11
- export var CoordinateProjection;
12
- (function (CoordinateProjection) {
11
+ export const CoordinateProjection = {
13
12
  /**
14
13
  * Coordinate system used in Google Earth and GSP systems.
15
14
  *
16
15
  * It represents Earth as a three-dimensional ellipsoid.
17
16
  */
18
- CoordinateProjection["WGS84"] = "4326";
17
+ WGS84: "4326",
19
18
  /**
20
19
  * North American Datum 1983, a geodetic reference system used in the TIGER/Line data.
21
20
  */
22
- CoordinateProjection["NAD83"] = "4269";
23
- })(CoordinateProjection || (CoordinateProjection = {}));
21
+ NAD83: "4269",
22
+ };
24
23
  //# sourceMappingURL=projection.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"projection.js","sourceRoot":"","sources":["../projection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAN,IAAY,oBAWX;AAXD,WAAY,oBAAoB;IAC/B;;;;OAIG;IACH,sCAAc,CAAA;IACd;;OAEG;IACH,sCAAc,CAAA;AACf,CAAC,EAXW,oBAAoB,KAApB,oBAAoB,QAW/B"}
1
+ {"version":3,"file":"projection.js","sourceRoot":"","sources":["../projection.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC;;;;OAIG;IACH,KAAK,EAAE,MAAM;IACb;;OAEG;IACH,KAAK,EAAE,MAAM;CACJ,CAAA"}
@@ -3,6 +3,6 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
- export * from "./codes.js";
7
- export * from "./names.js";
6
+ export * from "./codes.ts";
7
+ export * from "./names.ts";
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -3,5 +3,5 @@
3
3
  * @license AGPL-3.0
4
4
  * @author Teffen Ellis, et al.
5
5
  */
6
- export * from "./well-known-text.js";
6
+ export * from "./well-known-text.ts";
7
7
  //# sourceMappingURL=index.d.ts.map