prorm API Reference
    Preparing search index...

    POINT - specific geometry type for points Shorthand for GEOMETRY('POINT', srid)

    // Point with default SRID (4326)
    location: DataTypes.POINT()

    // Point with custom SRID
    location: DataTypes.POINT(4326)

    Hierarchy (View Summary)

    Index
    key: "POINT" = ...
    srid?: number

    SRID (Spatial Reference System Identifier) Default is 4326 (WGS 84)

    • Serialize a value for storage based on this DataType

      Parameters

      • value: unknown

        The value to serialize

      Returns unknown

      The serialized value