Skip to content

Adventures Objects

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

GeoJSON Object

{
  type: 'FeatureCollection,
  features: GeoJSONFeature[]
}
Key Type Description
type "FeatureCollection"
features GeoJSON-Feature[]

GeoJSON Feature

{
  type: 'Feature,
  geometry: {
    type: 'Point' | 'LineString'
    coordinates: [lng, lat] | [lng, lat][]
  },
  id: Int
  properties: {
    adventureType: adventureType
    adventureName: String
    color: String
  }
}
Key Type Description
type "Feature"
geometry Object
geometry.type `Point Linestring`
geometry.coordinates [Float, Float] An array of two floats representing, longitude and latitude
id Int The feature id
properties Object
properties.adventureType AdventureType
properties.adventureName String The name of the adventure
properties.color String The line color portrayed on the map

AdventureType

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

Coordinates Object

{
  lat: Float,
  lng: Float
}

GeoJSON Coordinates Object

[lng, lat]

Clone this wiki locally