forked from VanHoutte/location-picker_service_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.ts
executable file
·49 lines (45 loc) · 1.32 KB
/
types.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
export interface LocationItem {
/** the unique id of this location */
id: string;
/** the user-visible name of this location */
name: string;
/** the street name, if any */
street?: string;
/** the street id, if any */
streetid?: string;
/** the street address number (not a number, may contain letters) */
number?: string;
/** the street postal (not a number, may contain letters) */
postal?: string;
/** the city district this street is in (if known) */
district?: string;
/** the type of location item this is, number means street address */
locationType: LocationType;
/** the layer that the result came from (in the underlying data repository) */
layer?: string;
/** the coordinates of this location */
coordinates?: Coordinates;
/** the polygon of this location */
polygons?: LatLngCoordinate[][];
}
export interface Coordinates {
latLng?: LatLngCoordinate;
lambert?: LambertCoordinate;
}
export interface LambertCoordinate {
x: number;
y: number;
}
export interface LatLngCoordinate {
lat: number;
lng: number;
}
export enum LocationType {
Street = "street",
Number = "number",
Poi = "poi",
Park = "park",
BicycleRoute = "bicycleroute",
GlassContainer = "glasscontainer",
RegionalRoad = "regionalroad",
}