-
Notifications
You must be signed in to change notification settings - Fork 2
/
btcmap.d.ts
87 lines (78 loc) · 1.38 KB
/
btcmap.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
export interface BtcMapPlace {
id: string
osm_json: OsmJSON
tags: Tags
created_at: string
updated_at: string
deleted_at: string
}
export interface OsmJSON {
changeset?: number
id: number
lat?: number
lon?: number
tags: { [key: string]: string }
timestamp?: string
type: Type
uid?: number
user?: string
version?: number
bounds?: Bounds
geometry?: Geometry[]
nodes?: number[]
members?: Member[]
}
export interface Bounds {
maxlat: number
maxlon: number
minlat: number
minlon: number
}
export interface Geometry {
lat: number
lon: number
}
export interface Member {
geometry?: Geometry[]
ref: number
role: Role
type: Type
}
export enum Role {
Empty = "",
Inner = "inner",
Outer = "outer",
}
export enum Type {
Node = "node",
Relation = "relation",
Way = "way",
}
export interface Tags {
category: Category
"icon:android": string
"payment:coinos"?: string
"payment:pouch"?: string
"boost:expires"?: string
"category:plural"?: CategoryPlural
"payment:provider"?: string
"payment:uri"?: string
}
export enum Category {
ATM = "atm",
Bar = "bar",
Cafe = "cafe",
Hotel = "hotel",
Other = "other",
Pub = "pub",
Restaurant = "restaurant",
}
export enum CategoryPlural {
Atms = "atms",
Bars = "bars",
Cafes = "cafes",
Hotels = "hotels",
Other = "other",
Pubs = "pubs",
Restaurants = "restaurants",
}