Skip to content

Geospatial Types

Cratis provides strongly-typed geospatial classes for working with geographic coordinates following the GeoJSON specification.

TypeUse for
PointSingle locations (addresses, landmarks, sensors)
LineStringConnected paths and routes
PolygonAreas and regions bounded by rings
  • GeoJSON Compatible — Standard format for geographic databases and mapping tools
  • Automatic Serialization — Handled by the Cratis framework
  • Type Safe — Compile-time validation through TypeScript classes
  • Full-Stack — Use the same types on C# and TypeScript with automatic round-tripping

See Understanding Geospatial Types for concepts and when to use each type.