Skip to content

Commit

Permalink
add geojson interface
Browse files Browse the repository at this point in the history
  • Loading branch information
gloryvictory committed Nov 14, 2022
1 parent 5eff646 commit a35b3d9
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ logs
*.log

.vscode/
data/
48 changes: 48 additions & 0 deletions interfaces/geojson.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
declare module "GeoJSON" {

export interface Geometry {
type: string;
coordinates: number[][][];
}

export interface Properties {
objectid: number;
area_lic: string;
god_licenz: number;
nom_zsngp: number;
nom_list: string;
nom: number;
data_start: any;
data_end: any;
vid: string;
tip: string;
name: string;
number: string;
sostoyanie: string;
priznak: string;
nom_lic: string;
head_nedro: string;
oblast: string;
zsngp: string;
nedropolz: string;
nedropol_1: string;
nom_yrfo: number;
authority: string;
st_area(shape)?: number;
st_length(shape)?: number;
}

export interface Feature {
type: string;
id: number;
geometry: Geometry;
properties: Properties;
}

export interface RootObject {
type: string;
features: Feature[];
}

}

0 comments on commit a35b3d9

Please sign in to comment.