Skip to content

Commit 85915d8

Browse files
authored
Added types for Geospatial (#6747)
1 parent c60aba4 commit 85915d8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

bindgen/spec.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ mixedInfo:
126126
- LinkList
127127
extraCtors:
128128
- Obj
129+
- Geospatial
129130

130131
enums:
131132
SchemaMode:
@@ -362,6 +363,28 @@ records:
362363
type: std::string
363364
default: ''
364365

366+
GeoPoint:
367+
fields:
368+
longitude: double
369+
latitude: double
370+
altitude:
371+
type: double
372+
default: std::numeric_limits<double>::quiet_NaN()
373+
374+
GeoCircle:
375+
fields:
376+
radius_radians: double
377+
center: GeoPoint
378+
379+
GeoBox:
380+
fields:
381+
lo: GeoPoint
382+
hi: GeoPoint
383+
384+
GeoPolygon:
385+
fields:
386+
points: std::vector<std::vector<GeoPoint>>
387+
365388
RealmConfig:
366389
fields:
367390
path: std::string
@@ -752,6 +775,12 @@ classes:
752775
get_seconds: int64_t
753776
get_nanoseconds: int32_t
754777

778+
Geospatial:
779+
constructors:
780+
make_from_circle: '(circle: GeoCircle)'
781+
make_from_box: '(box: GeoBox)'
782+
make_from_polygon: '(polygon: GeoPolygon)'
783+
755784
ObjLink:
756785
properties:
757786
is_null: bool

0 commit comments

Comments
 (0)