Check your understanding
Lesson Summary
In this lesson, you learned how to work with 2D and 3D Cartesian and WGS-84 points using the Go driver:
-
The
neo4j.Point2Dandneo4j.Point3Dtypes represent spatial data in Go -
You can create points directly in Go or through Cypher functions
-
Cartesian points use x, y coordinates with SRID 7203 (2D) or 9157 (3D)
-
WGS-84 points use longitude, latitude coordinates with SRID 4326 (2D) or 4979 (3D)
-
The
point.distancefunction calculates distances between compatible points -
Point coordinates can be accessed using the
X,Y,ZandSpatialRefIdfields
For more information on Spatial types, view the spatial types page in Cypher Manual or the related Go manual types and mapping page.