Trail geometry

GET /api/v1/geo/bounds/trails — Trail geometry.

GET /api/v1/geo/bounds/trails

Retrieve available GeoJSON features whose bounding boxes intersect a viewport. Choose trails, areas or combined features and adjust geometry detail for your map.

Authentication

No API key is required.

Parameters

Query parameters

ParameterTypeRequiredDefaultDescription
ne_lngnumberYes—Northeast longitude in degrees.
ne_latnumberYes—Northeast latitude in degrees.
sw_lngnumberYes—Southwest longitude in degrees.
sw_latnumberYes—Southwest latitude in degrees.
complexitynumberNo1Geometry detail ratio: 1 preserves original; smaller positive values simplify. Zero falls back to 1.

Returns GeoJSON directly, without success/data; global hooks can add meta.version. Coordinates use longitude, latitude order. Bounds intersect feature bounding boxes, so geometry can extend beyond the viewport. /bounds and /bounds/trail alias /bounds/trails. Dataset features are not guaranteed to share operational entity IDs. Geographic completeness and crossing-antimeridian handling are not guaranteed. Missing boundary parameters return 400.

Example request

curl 'https://api.icecoast.us/api/v1/geo/bounds/trails?ne_lng=-72&ne_lat=45&sw_lng=-74&sw_lat=43&complexity=1'

Response

The successful response is a GeoJSON FeatureCollection directly.

The following is a synthetic response excerpt illustrating the verified structure. Names, IDs, counts and dates are examples, not live resort data. Optional fields are omitted.

{
  "type": "FeatureCollection",
  "features": [],
  "meta": {
    "version": "v1"
  }
}

Resource fields

FieldTypeMeaning
typeanySee the data model and returned resource.
featuresarraySee the data model and returned resource.
metaobjectGlobal API metadata.

Record fields may be missing or null. Treat identifiers as opaque and distinguish unavailable values from confirmed false/zero. See data semantics.

Errors

HTTP statusMeaning
400Invalid request parameters where validated.
500The resource could not be read.

JSON errors may use error or message; the global handler maps validation/runtime errors to success: false, error (name) and message (details). See error handling.