Query Tracks by Envelope

GeoCrew

The GeoView Server REST API enables querying tracks recordings by envelope. Spatial query filters feature data store by specified rectangle, returning any tracks recordings contained in it based on specified coordinate system and resulting data format. Accessing this method requires Read permissions.


Request API method URI definition:


HTTP GET http://api.geoview.be/geoservice/v1/tracks/envelope


Request HTTP URI parameters:


Parameter

Description

token

Access token (returned by this API method).

minx

Minimum X-axis ordinate value (longitude value in WGS84).

miny

Minimum Y-axis ordinate value (latitude value in WGS84).

maxx

Maximum X-axis ordinate value (longitude value in WGS84).

maxy

Maximum Y-axis ordinate value (latitude value in WGS84).

srs

Spatial reference system identifier (returned by this API method), being an EPSG code value. This parameter is optional. If omitted, default GeoView Server spatial reference system will be used.

maxcnt

Maximum number of records to return. This parameter is optional. If omitted, returns all records within given scope.

filter

If 1, then data returned is being filtered using filtering parameters returned by this API method. If 0 or omitted, no data filtering will take place and all results will be returned. Assuming filtering is on, filtering parameter values should be added to the URI parameters above.


Example HTTP request URI using default GeoView Server coordinate system:


HTTP GET http://api.geoview.be/geoservice/v1/tracks/envelope?minx=107275.3792&miny=195092.7299&maxx=110934.7584&maxy=197065.6329&token=3dc718f2-ab20-4f41-86e1-72abcc1810c1


Example HTTP request URI using WGS84 coordinate system:


HTTP GET http://api.geoview.be/geoservice/v1/tracks/envelope?minx=3.75926412683421&miny=51.0644027174778&maxx=3.81125414000692&maxy=51.0823945502109&srs=4326&token=3dc718f2-ab20-4f41-86e1-72abcc1810c1


Possible resulting HTTP status codes:


Value

Description

200

API request succeeded and result(s) were returned.

204

API request succeeded but query didn't produce any results.

400

API request failed due to wrong parameter value(s).

401

Supplied API request access token not valid.


Response JSON structure for a single recording (please note that API method may return array of recordings):


Field

Description

id

Track unique identifier.

path

Array of XY coordinate values of track recording in specified SRS (latitude/longitude values in WGS84).


Example JSON response using default GeoView Server coordinate system:


[

  {

     "id":"9139f86d-b477-48c6-8138-4baf45e61509",

     "path":

        [

           [110031.00775252095,194132.53299953044],

           [110030.91341130513,194134.025712586],

           [110029.99372787471,194138.24765002262],

           [110030.09004779822,194142.37787912879],

           ...

        ]

  }

]


Example JSON response using WGS84 coordinate system:


[

  {

     "id":"9139f86d-b477-48c6-8138-4baf45e61509",

     "path":

        [

           [3.7986781778649372,51.055968380473786],

           [3.79867666906494,51.055981791473769],

           [3.7986630903649488,51.056019677673781],

           [3.7986640123649535,51.056056809573768],

           ...

        ]

  }

]