Skip to main content

GeoShape

A GeoShape is a complex data type that represents a geometric shape in a two-dimensional space. It can be used to store various geometric forms such as points, lines, and polygons. The GeoShape follows the GeoJSON format, which is a widely used standard for encoding geographic data structures.

Structure

The structure differentiates between different geometric shapes. The most common used types in our system are:

  • Point: A single coordinate in space.

    {
    "type": "Point",
    "coordinates": [longitude, latitude]
    }
  • LineString: A series of connected points forming a line.

    {
    "type": "LineString",
    "coordinates": [[longitude1, latitude1], [longitude2, latitude2], ...]
    }
  • Polygon: A closed shape defined by a series of points.

    {
    "type": "Polygon",
    "coordinates": [[[longitude1, latitude1], [longitude2, latitude2], ...]]
    }

Example

{
"types": [
"venus:BikeTrip"
],
"content": {
"schema:name": [
{
"value": "Fahrradweg",
"lang": "de-DE"
}
],
"schema:geo": {
"type": "LineString",
"coordinates": [
[
7.93842,
49.144448,
215
],
[
7.941208,
49.144375,
214
],
[
7.941181,
49.14519,
211
],
[
7.941712,
49.145288,
210
],
...
]
}
}
}