@deallony/shared 1.0.19 → 1.0.21

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.
@@ -1,3 +1,7 @@
1
+ type Point = {
2
+ lat: number;
3
+ lng: number;
4
+ };
1
5
  export type GeoJSONPosition = [number, number];
2
6
  export type GeoJSONPolygonGeometry = {
3
7
  type: 'Polygon';
@@ -20,3 +24,18 @@ export type AdminBoundary = {
20
24
  adminCentreNodeLng?: number | null;
21
25
  geometry?: GeoJSONPolygonGeometry | null;
22
26
  };
27
+ type BoundaryMatch = {
28
+ adminLevel: number;
29
+ id: number;
30
+ osmId: number;
31
+ name: string;
32
+ nameEn: string;
33
+ boundary: string;
34
+ area?: number;
35
+ };
36
+ export type PointTreeResponse = {
37
+ point: Point;
38
+ matches: BoundaryMatch[];
39
+ bestByAdminLevel: Omit<BoundaryMatch, 'area'>[];
40
+ };
41
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deallony/shared",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",