Skip to content

Adventures Objects

Andrew Maclean edited this page Jun 23, 2024 · 20 revisions

GeoJSON Object

{
  type: 'FeatureCollection,
  features: GeoJSONFeature[]
}

Description:
Each feature in a GeoJSON object is a GeoJSON Feature

GeoJSON Feature

{
  type: 'Feature,
  geometry: {
    type: 'Point' | 'LineString'
    coordinates: [lng, lat] | [lng, lat][]
  },
  id: Int
  properties: {
    adventureType: adventureType
    adventureName: String
    color: String
  }
}

Description:
id is the feature id, used to call the feature individually
adventureName is the name of the feature
color denotes the path color on the map

AdventureType

enum('ski' | 'climb' | 'hike' | 'bike' | 'skiApproach')

Description:
The available adventure types to choose from

Coordinates Object

{
  lat: Double,
  lng: Double
}

Description:
The longitude, and latitude arranged in an array. Used for GeoJSON structures.

GeoJSON Coordinates Object

[lng, lat]

Description:
The latitude and longitude of a point. Any coordinates will be formated like this unless in a GeoJSON object.

Clone this wiki locally