diff --git a/jsManual/asciidoc/cypher-workflow.adoc b/jsManual/asciidoc/cypher-workflow.adoc index d2b2027b..1c98378a 100644 --- a/jsManual/asciidoc/cypher-workflow.adoc +++ b/jsManual/asciidoc/cypher-workflow.adoc @@ -199,6 +199,44 @@ Contains both date-based values (years, months, days) and time-based values (sec include::{javascript-examples}/examples.test.js[tags=temporal-types-duration] ---- +[[js-driver-geospatial-types]] +=== Geospatial Types + +This section lists some basic usage of the geospatial types provided by the Javascript Driver. + + +[[js-driver-geospatial-types-cartesian]] +==== `Point` + +Represents 2 or 3 dimensional point in Cartesian space or in the WGS84 space. +The field `SRID` indicates the type of the coordinate. + +The following table lists the possible values for `SRID`: + +====== +[options="header", cols="<20m,<80a"] +|=== +| SRID | Description +| `7203` | 2D point in the cartesian space. +| `9157` | 3D point in the cartesian space. +| `4326` | 2D point in the WGS84 space. +| `4979` | 3D point in the WGS84 space. +|=== +====== + +Examples of Cartesian points instantiation and reading: + +[source, javascript] +---- +include::{javascript-examples}/examples.test.js[tags=geospatial-types-cartesian] +---- + +Examples of WSG84 points instantiation and reading: + +[source, javascript] +---- +include::{javascript-examples}/examples.test.js[tags=geospatial-types-wgs84] +---- [[js-driver-exceptions-errors]] == Exceptions and error handling